a=input()
b=a.split()
if int(b[0])<int(b[1]):
  print(0)
else:
  print(10) a=input() a input() input b=a.split() b a.split() a.split a split if int(b[0])<int(b[1]):
  print(0)
else:
  print(10) int(b[0])<int(b[1]) int(b[0]) int b[0] b 0 int(b[1]) int b[1] b 1 print(0) print 0 print(10) print 10 b=a.split() a.split() b a=input() input() a
a=input()
b=a.split()
if int(b[0])<int(b[1]):
  print(0)
else:
  print(10)