#include<stdio.h> int main() { int a = 0; scanf("%d",&a); int b = 0; while(a) { b = a%10; printf("%d",b); a = a/10; }

return 0;

}