fun main(args: Array<String>) {
    while(true)
    {
        val n:Int = readLine()!!.toInt()
        var list = readLine()!!.split(" ").map(String::toInt)
        list = list.reversed()
        for ( i in 0..n-2)
        {
            print(list[i].toString().plus(" "))
        }
        print(list[n-1].toString())
        println()
        return
    }
}
