s = "".join(i for i in input().split()).lower()
print(s == s[::-1])