import List import Text.Printf f x=x!!0:printf":%3d\n"(length x) main=interact$(>>=f).tail.group.sort