N = int(input()) if N % 90 == 0 and (N // 90) % 2 == 1: print("Yes") else: print("No")