N=input() if N=="2": print(0,"Yes",sep="\n") else: print(int(N[-1])%2,"No",sep="\n")