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

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

console.log(reverseSequence(input));