a,b = list(map(int,input().split()))

if a*500>=b:

  print("Yes")

else:

  print("No")
K,X=list(map(int,input().split()))

if 500*K>=X:

    print("Yes")

else:

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

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

-a, b = list(map(int, input().split())) -if a * 500 >= b: +K, X = list(map(int, input().split())) +if 500 * K >= X: