N=int(input()) if N==2: print(0) print('Yes') else: print(N%2) print('No')