function Main(input) {
    s = input.split("\n")[0];
    if (s.length % 2 == 0) console.log(s);
    else console.log(s.split('').reverse().join(''));
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
