n=list(input()) if len(n) and n[-1]=='2': print('0') print('Yes') else: N=int(n[-1]) if N%2!=0: print('1') print('No') else: print('0') print('No')