#include<cstdio>
#include<iostream>
#include<string>
using namespace std;

int main(){
	char str[30]={};
	int i=0;
	
	cin >> str;
	
	for(i = str.length() - 1;i>=0;i--) cout<<str[i];
	
	cout<<endl;
	
	return 0;
}