import java.util.Scanner; /**
* @author:(LiberHome)
* @date:Created in 2019/3/5 21:08
* @description:
* @version:$
*/
/*已知一个正整数m,编写一个程序求m的反序数*/
public class page1501 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("请输入一个整数");
int inputNum = scanner.nextInt();
int answer=reverseNum(inputNum);
System.out.println(answer);
} private static int reverseNum(int num) {
int n,m,s=0;
n=num;
while (n!=0){
m=n%10;
n=n/10;
s=s*10+m;
}
return s;
}
}