let str = readline();

function getStr(str){
    let arr = [...str];

    console.log(arr.reverse().join(''));
}

getStr(str);