#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include <functional>
#include <iomanip>
using namespace std;

#define ll long long int

#define rep(p,q) for(int i = p; i < q;i++)


//6

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