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