#include<stdio.h> int main() { char ad[12345]; int x = 0; while (scanf("%c",&ad[x])==1) { x+=1; } for(;x>=0;x--) { printf("%c",ad[x]); } return 0; }