a,b = input().split(" ")
if int(a)<int(b):
  print(0)
else:
  print(10) a,b = input().split(" ") a input().split(" ") ().split () input split " " b if int(a)<int(b):
  print(0)
else:
  print(10) int(a)<int(b) int(a) int a int(b) int b print(0) print 0 print(10) print 10 b = input().split(" ") input().split(" ") b a,b = input().split(" ") input().split(" ") a
a,b = input().split(" ")
if int(a)<int(b):
  print(0)
else:
  print(10)