S = input().strip() if S == "2": print(0) print("Yes") else: print(int(S[-1]) % 2) print("No")