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