n = int(input()) for i in range(6): if 180*i+90 == n: print("Yes") exit() print("No")