4clj; solve problem 050 - split by type