eval"L,N,*A="+$<.read.split*?, p A.sort.index{|i|L<$.+=i}||N