#include<iostream>
#include<cstring>
using namespace std;
int main(){
	char in[20],out[20];
	cin >>in;
	int len = strlen(in);
	for(int i=0; i<len; i++){
		out[len-i-1] = in[i];
	}
	out[len] = 0;
	cout <<out<<endl;
	return 0;
}