8 lines
216 B
Python
8 lines
216 B
Python
'''****** Задание ********
|
||
*А роза упала на лапу Азора.
|
||
'''
|
||
num = int(input())
|
||
if num // 1000 == num % 10 and num % 1000 // 100 == num % 100 // 10:
|
||
print('YES')
|
||
else:
|
||
print('NO') |