let line=readline()
let res=[...line.toLowerCase()].reverse().join('');
console.log(res)