N = int(input()) print("Yes"if N%180 and not N%90 else "No")