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