# coding=utf-8
"""判断输入的数字是不是回文数"""
num = int(input("请输入一个数字!"))
nums = str(num)
lenth = len(nums)
flag = True
def ifHuiwenNum(n, k):
global flag
for i in range(k//2):
if n[i] != n[k-i-1]:
flag = False
break
if __name__ == '__main__':
flags = ifHuiwenNum(nums, lenth)
if flag == False:
print("这个数不是回文数")
else:
print("这个数是回文数")
# 题目难度不大 注意对应即可