#include <stdio.h>int main(){ int x; scanf("%d",&x); int t; int ret=0;do { t=x%10; ret=ret*10+t; x/=10; }while(x>0); printf("%d",ret);}