(function(input) {
	'use strict';
	var output = [];
	var arr = input.split('');
	while (arr.length) {
		output.push(arr.pop());
	}
	console.log(output.join(''));
})(require('fs').readFileSync('/dev/stdin', 'utf8'))