Input
Output
>> javac Main.java
>> java Main
Enter any number : 
121 is a palindrome.