readLine.tails.toList.init.sorted map println