/ .* /?$\+=${${$`}{$b=$&-$'}++;$`^1}{$b}:0for<>;print