n=input() print(0 if int(n[-1])%2==0 else 1) print("No")