n=int(input()) if n%180==0: print("No") else: print("Yes")