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