import math I = int(input()) radian = math.radians(I) tangent = math.tan(radian) if tangent.is_integer(): print("Yes") else: print("No")