import sys s=str(input()) if s=="2": print(0) print("Yes") sys.exit() if s[-1]=="0": print(0) print("No") else: print(1) print("No")