import java.util.*;
class test {
public static int reverse(int number){
String str=""+number;
String str0="";
for(int i=str.length()-1;i>=0;i--){
str0+=str. charAt(i);
}
int a=Integer. parseInt(str0);
return a;
}
public static boolean isPalindrome(int number){
int a=reverse(number);
if(a==number){
return true;
}else{
return false;}
}
public static void main(String[] args) {
System.out.println("Hello world!");
Scanner input=new Scanner(System.in);
int n =input.nextInt() ;
System.out.println(reverse(n));
System.out.println(isPalindrome(n));
}
}
04-20