print("0\nYes" if (s:=input())=="2" else f"{int(s[-1])%2}\nNo")