s=input() if s == '2': print(0) print('Yes') else: if int(s[-1]) % 2 == 0: print(0) print('No') else: print(1) print('No')