X,A = (int(x) for x in input().split())
if X < A:
  print(0)
else:
  print(10) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x X,A = (int(x) for x in input().split()) X (int(x) for x in input().split()) A if X < A:
  print(0)
else:
  print(10) X < A X A print(0) print 0 print(10) print 10 A = (int(x) for x in input().split()) (int(x) for x in input().split()) A X,A = (int(x) for x in input().split()) (int(x) for x in input().split()) X
X,A = (int(x) for x in input().split())
if X < A:
  print(0)
else:
  print(10)