import java.util.Scanner

object Main extends App {
  def readALine(c:Int, ac:List[Int]):List[Int] =
    if (c > 0) readALine(c-1, sc.nextInt::ac) else ac.reverse
  def readLines(r:Int, c:Int, ac:List[List[Int]]):List[List[Int]] =
    if (r > 0) readLines(r-1, c, readALine(c, Nil)::ac) else ac.reverse
  val sc = new Scanner(System.in)
  val N = sc.nextInt
  val ls = readALine(N, Nil)


  def reverse(ls:List[Int], ac:List[Int]): List[Int] = {
    if (ls.isEmpty) ac else reverse(ls.tail, ls.head::ac)
  }
  
  println(reverse(ls, Nil).mkString(" "))

}
