val x = io.Source.stdin.getLines().toList x.map(l => l.split(" ").reverse.mkString(" ")).reverse.foreach(println)