x = input()
print(0 if x[0] < x[2] else 10) x = input() x input() input print(0 if x[0] < x[2] else 10) print 0 if x[0] < x[2] else 10 x[0] < x[2] x[0] x 0 x[2] x 2 0 10 x = input() input() x
x = input()
print(0 if x[0] < x[2] else 10)
