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