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