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