k, x = list(map(int, input().split()))

print(('Yes' if k*500 >= x else 'No'))
a, b = list(map(int, input().split()))

print(('Yes' if a*500 >= b else 'No'))
k, x = list(map(int, input().split()))
print(("Yes" if k * 500 >= x else "No"))

a, b = list(map(int, input().split()))
print(("Yes" if a * 500 >= b else "No"))

-k, x = list(map(int, input().split())) -print(("Yes" if k * 500 >= x else "No")) +a, b = list(map(int, input().split())) +print(("Yes" if a * 500 >= b else "No"))