readLine.tails.toList.reverse map(_.inits.toList.init.reverse map println)