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

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

print(('YNeos'[x>500*k::2]))
k, x = list(map(int, input().split()))
print(("Yes" if x <= 500 * k else "No"))

k, x = list(map(int, input().split()))
print(("YNeos"[x > 500 * k :: 2]))

-print(("Yes" if x <= 500 * k else "No")) +print(("YNeos"[x > 500 * k :: 2]))