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