int main(){ char str[1000]; scanf("%s", str); for (int i=strlen(str)-1; i>=0; --i) printf("%c", str[i]);}