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

print((0 if x < a else 10))
x,a=input().split();print(((x>=a)*10))
x, a = list(map(int, input().split()))
print((0 if x < a else 10))

x, a = input().split()
print(((x >= a) * 10))

-x, a = list(map(int, input().split())) -print((0 if x < a else 10)) +x, a = input().split() +print(((x >= a) * 10))