project-python3/lesson2.3_16.py
2025-12-15 14:14:30 +05:00

14 lines
316 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'''****** Задание ********
*А роза упала на лапу Азора 2.0.
'''
num = int(input())
original_num = num
reversed_num = 0
while num > 0:
digit = num % 10
reversed_num = reversed_num * 10 + digit
num //= 10
if original_num == reversed_num:
print('YES')
else:
print('NO')