import Data.List m=map;l=length;f=filter v[a,b]=or$zipWith(==)a b x?y|x>y=x-1|x1).m l.group.sort.(n=<<)).(\x->[x,f v x]).m(m z.f(>".").words).lines