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