n, k = (int(xi) for xi in input().split())

if n<k:
  print(0)
else:
  print(10) int(xi) for xi in input().split() for xi in input().split() xi input().split() ().split () input split for xi in input().split() int(xi) int xi n, k = (int(xi) for xi in input().split()) n (int(xi) for xi in input().split()) k if n<k:
  print(0)
else:
  print(10) n<k n k print(0) print 0 print(10) print 10 n, k = (int(xi) for xi in input().split()) (int(xi) for xi in input().split()) n k = (int(xi) for xi in input().split()) (int(xi) for xi in input().split()) k
n, k = (int(xi) for xi in input().split())

if n<k:
  print(0)
else:
  print(10)