process.stdin.resume();
process.stdin.setEncoding('utf8');
// ???????????????????¨??????§
// Let's ?????£??¬????????????
process.stdin.on('data', function (chunk) {
    var aaa = chunk.toString();
    var line = aaa.split("");
    line.reverse();
    var a = "";
    for(var i in line){
        a += line[i];
    }
    process.stdout.write(a);
});