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