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

int main(){
string a;
int c;
string d[20];
c=0;
cin >> a;
while(string b(a,c,0)){
d[c]=b;
c=c+1;}
int e;
e=c-1;
while(e>=0){
cout << d[e];
e=e-1;}


}