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