#include <stdio.h>
//递归
int main() {
void reverse();
reverse();
return 0;
}
void reverse(){
char c;
if(scanf("%c",&c)!=EOF&&c!='\n')
reverse();
if(c!='\n')
printf("%c",c);
}

#include <stdio.h>
//递归
int main() {
void reverse();
reverse();
return 0;
}
void reverse(){
char c;
if(scanf("%c",&c)!=EOF&&c!='\n')
reverse();
if(c!='\n')
printf("%c",c);
}