N = int(input()) % 360 print("Yes") if N in [90, 270] else print("No")