import math I = int(input()) rad = math.radians(I) if math.isclose(math.tan(rad), round(math.tan(rad))): print("Yes") else: print("No")