// tested on node version 0.10.36
var fs = require("fs");

function reverse(s) {
  return s.split('').reverse().join('');
}

var input = fs.readFileSync('/dev/stdin').toString().trim();
console.log(reverse(input));