a=str(input()) b=a.replace(' ','').lower() print(bool(b == b[::-1]))