import sys, math input = lambda: sys.stdin.readline()[:-1] def MI(): return map(int, input().split()) inf = 10**18 e = set() for i in range(1, 90): tan = math.tan(math.radians(i))**2 # 小数点第10位で四捨五入 tan_rounded = str(round(tan, 10)) # 小数点以下がすべて0なら追加 tan_int, frac = tan_rounded.split(".") if frac == "0"*len(frac): e.add(i) if int(input()) in e: print("Yes") else: print("No")