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