var input = require('fs').readFileSync('/dev/stdin', 'utf8').replace(/\n/g,'');

function reverseSequence(str) {
	var output = '';
	var arr = str.split('');
	while (arr.length) {
		output += arr.pop();
	}
	return output;
}

console.log(reverseSequence(input));