N=int(input()) print("{}".format("Yes" if (N/90)%2==1 else "No"))