fun main(args: Array<String>) {
val input = 121
var reverseNumber = 0
var remainder: Int
var temp = input
while (temp > 0) {
remainder = temp % 10
reverseNumber = (reverseNumber * 10) + remainder
temp = temp / 10
}
if (input == reverseNumber) {
println("The given number is Palindrome")
} else {
println("The given number is NOT a Palindrome")
}
}