I=int(input()) D={} D[I]=0 now=I for i in range(1000): nex=(now*2)%180 if nex in D: break D[nex]=i+1 now=nex if 45 in D: print('Yes') else: print('No')