#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;

int main() {
	string sb;
	cin >> sb;
	reverse(sb.begin(),sb.end());
	cout << sb << endl;

	return 0;
}