n=int(input()) if n&1!=0: print("1") n+=1 else: print("0") print("No" if n!=2 else "Yes")