const main = input => {
    if (input.length == 2) {
        console.log(input);
    } else {
        console.log(input.split('').reverse().join(''));
    }
};

main(require('fs').readFileSync('/dev/stdin', 'utf8'));