def solve(): N_str = input() def yes(t): print(t) print("Yes") def no(t): print(t) print("No") if len(N_str) == 1: N = int(N_str) if N == 2: yes(0) return if N_str[-1] in {'0', '2', '4', '6', '8'}: no(0) else: no(1) #================================================== solve()