N = int(input()) q, r = divmod(N, 90) if r == 0 and q % 4 in [1, 3]: print("Yes") else: print("No")