x,a = input().split()
if (x>=a):
    answer = 10
else:
    answer = 0
print(answer) x,a = input().split() x input().split() ().split () input split a if (x>=a):
    answer = 10
else:
    answer = 0 x>=a x a answer = 10 answer 10 answer = 0 answer 0 print(answer) print answer x,a = input().split() input().split() x answer = 10 10 answer a = input().split() input().split() a answer = 0 0 answer
x,a = input().split()
if (x>=a):
    answer = 10
else:
    answer = 0
print(answer)
