list = input().split(" ")
X = list[0]
A = list[1]
if X < A:
  print(0)
else:
  print(10) list = input().split(" ") list input().split(" ") ().split () input split " " X = list[0] X list[0] list 0 A = list[1] A list[1] list 1 if X < A:
  print(0)
else:
  print(10) X < A X A print(0) print 0 print(10) print 10 A = list[1] list[1] A X = list[0] list[0] X list = input().split(" ") input().split(" ") list
list = input().split(" ")
X = list[0]
A = list[1]
if X < A:
  print(0)
else:
  print(10)