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