import sys words = sys.stdin.read().replace(' ', '').lower() print(list(words) == list(reversed(words)))