题目描述

A palindrome is a number or a text phrase that reads the same backward as forward. For example, each of the following five-digit integers is a palindrome: 12321, 55555, 45554 and 11611. Write a program that reads in a five-digit integer and determines whether it’s a palindrome. [Hint: Use the division and modulus operators to separate the number into its individual digits.]


输入格式

Input contains serveral lines.
The last line is -1, and the other line are five-digit integer.
Exit the program when input integer is -1.


输出格式

Print a message that tells whether the number is palindrome.


样例数据

输入

12343
23123
23132
-1

输出

12343 is not a palindrome.
23123 is not a palindrome.
23132 is a palindrome.

备注


操作

评测记录

优秀代码

信息

时间限制: 1s
内存限制: 128MB
评测模式: Normal

题解