N = input() if N[-1] in '02468': print('0') else: print('1') if N == '2': print('Yes') else: print('No')