a = input().replace(' ', '').lower()

l = len(a)

for i in range(l//2):
    if a[i] != a[-1-i]:
        print("False")
        quit()

print("True")