import java.util.Scanner;
public class He1
{
public static void main(String[] args) {
System.out.print("请输入一个整数:");
Scanner scanner = new Scanner(System.in);
int m=(int) scanner.nextLong();
System.out.println("整数反转过来为:"+rev(m));
}
public static int rev(int x) {
int result=0;
while(x>0){
int n =x%10;
result=result*10+n;
x =x/10;
}
return result;
}
}