N=input() if N=="2": print('0') print('Yes') exit() elif int(N[-1])%2==0: print('0') else: print('1') print('No')