'use strict'
const Main = (input) => {
	let xs = input.trim().split(' ');
    let len = xs.length;
    let ans = '';
    for(let i = len-1; i>=0; i--){
    ans += xs[i];
    }
    console.log(ans);
    
}
Main(require('fs').readFileSync('/dev/stdin','utf8'));
