import scala.io.StdIn

object Main {

  def main(args: Array[String]) {
    val n = StdIn.readInt()
    val list = StdIn.readLine().split(" ").map(_.toInt)
    print(list(n - 1))
    for (i <- 0 to n - 2) {
      print(s" ${list(n - i - 2)}")
    }
    println()
  }  
}

