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