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