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