N = int(input()) if (N // 90) % 4 in [1, 3]: print("Yes") else: print("No")