a,b=map(int, input().split())
assert 0<=a,b<=9

if a>=b:
  print('10')
else:
  print('0') a,b=map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b assert 0<=a,b<=9 0<=a 0 a b<=9 b 9 if a>=b:
  print('10')
else:
  print('0') a>=b a b print('10') print '10' print('0') print '0' a,b=map(int, input().split()) map(int, input().split()) a b=map(int, input().split()) map(int, input().split()) b
a,b=map(int, input().split())
assert 0<=a,b<=9

if a>=b:
  print('10')
else:
  print('0')