In = input().replace(' ', '').lower()
if In == In[::-1]:
    print(True)
else:
    print(False)