package classicDemo;
import java.util.Scanner;
public class nixu {
public static void main(String[] args) {
Scanner sca=new Scanner(System.in);
System.out.println("请输入一个数字");
int num=sca.nextInt();
int rs=0;
while(true) {
int n=num%10;
rs=rs*10+n;
num=num/10;
if(num==0) {
break;
}
}
System.out.println(rs);
}
}