/*
void reverseStr(char str[]);
*/
#include<stdio.h>
#define MAXLEN 100
int main()
{
void reverseStr(char str[]);
char s[MAXLEN];
scanf("%s",s);
reverseStr(s);
return 0;
}
void reverseStr(char str[])
{
int i=0,j;
char temp;
while (str[i+1]!='\0')
{
i++;
}
for(j=0;j<=i/2+1;j++,i--)
{
temp=str[j];
str[j]=str[i];
str[i]=temp;
}
printf("%s\n",str);
}