N=input() if N=="2": print(0) print("Yes") else: a=int(N[-1]) print(a%2) print("No")