N = input() if N == "2": ans = [0, "Yes"] else: if int(N[-1]) % 2 == 0: ans = [0, "No"] else: ans = [1, "No"] for i in range(len(ans)): print(ans[i])