var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var splitString = input.split("");  
var reverseArray = splitString.reverse(); 
var joinArray = reverseArray.join("");     
console.log(joinArray);