gets 20.times{|n|puts$_=gsub(/\S+/){$&[n]?$&:' '*n}.rstrip}