IntPalindrome/ansemenov
IntPalindrome/olya.volodina
n1x = int(input())n1x_origin = int(input())
2if x % 10 == 0:2if x_origin % 10 == 0:
3    print('NO')3    print('NO')
4    exit()4    exit()
n5base = xn5x = x_origin
6rev = 06result = 0
7while x > 0:7while x > 0:
n8    rev = rev * 10 + x % 10n8    result = result * 10 + x % 10
9    x = x // 109    x = x // 10
t10if base == rev:t10print('YES') if x_origin == result else print('NO')
11    print('YES')
12else:
13    print('NO')
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op