s = input() n = int(s[-1]) ans = "No" if n % 2 == 0: print(0) if s == "2": ans = "Yes" else: print(1) print(ans)