n = int(input())
n%=360
print("Yes" if n == 90 or n == 270 else "No")