tmp = list(map(int, input().split()))
x = tmp[0]
a = tmp[1]

if x < a:
  print('0')
else:
  print('10') tmp = list(map(int, input().split())) tmp list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split x = tmp[0] x tmp[0] tmp 0 a = tmp[1] a tmp[1] tmp 1 if x < a:
  print('0')
else:
  print('10') x < a x a print('0') print '0' print('10') print '10' tmp = list(map(int, input().split())) list(map(int, input().split())) tmp a = tmp[1] tmp[1] a x = tmp[0] tmp[0] x
tmp = list(map(int, input().split()))
x = tmp[0]
a = tmp[1]

if x < a:
  print('0')
else:
  print('10')