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