#include <stdio.h>
#include <string.h>
int
main() {
char
a[100], *p;
gets
(a);
for
(p = &a[
strlen
(a) - 1]; p >= a; p--)
putchar
(*p);
return
0;
}