#include<iostream>
#include<string>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main(void){
	int n;
	char a[21]={0};
	cin>>a;
	n=strlen(a);
	for(int i=n-1;i>=0;i--){
        cout<<a[i];
	}
    cout<<endl;

	return 0;
}