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)