X,A=list(map(int,input().split()))

print((10*(X>=A)))
X,A=list(map(int,input().split()))

print(("0" if X<A else "10"))
X, A = list(map(int, input().split()))
print((10 * (X >= A)))

X, A = list(map(int, input().split()))
print(("0" if X < A else "10"))

-print((10 * (X >= A))) +print(("0" if X < A else "10"))