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