#include <stdio.h> int main() { int n; scanf("%d",&n);//1234/10 123 1234%10 4 while(n) { printf("%d",n%10); n=n/10; } return 0; }