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