#include <stdio.h> int main(void) { long n; scanf("%ld",&n); while(n) printf("%ld",n%10),n/=10; printf("\n"); getch(); return 0; }