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

g=500*n

if g>=k:

    print("Yes")

else:

    print("No")
k,n=list(map(int,input().split()))

if 500*k>=n:

    print("Yes")

else:

    print("No")
n, k = list(map(int, input().split()))
g = 500 * n
if g >= k:
    print("Yes")
else:
    print("No")

k, n = list(map(int, input().split()))
if 500 * k >= n:
    print("Yes")
else:
    print("No")

-n, k = list(map(int, input().split())) -g = 500 * n -if g >= k: +k, n = list(map(int, input().split())) +if 500 * k >= n: