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

print(0) if x<a else print(10) x,a = input().split() x input().split() ().split () input split a x,a = int(x),int(a) x int(x) int x a int(a) int a print(0) if x<a else print(10) x<a x a print(0) print 0 print(10) print 10 a = input().split() input().split() a x,a = input().split() input().split() x a = int(x),int(a) int(a) a x,a = int(x),int(a) int(x) x
x,a = input().split()
x,a = int(x),int(a)

print(0) if x<a else print(10)