#include<string.h>
void reverse (char *s)
{
char t;
static int i=0;
t = *(s+strlen(s)-i-1);
*(s+strlen(s)-i-1) = *(s+i);
*(s+i) = t;
i++;
if(strlen(s)/2==i);
else reverse (s);
}
void main()
char s[100];
cin>>s;
reverse(s);
cout<<s<<endl;