object RevirsingNumbers {
    def inputNumbers: List[Long] = {
      val sc = new java.util.Scanner(System.in)
      val n = sc.nextInt()
      List.fill(n)(sc.nextLong())
    }
    def reversingPrint(list: List[Long] ): Unit = {
      val n = list.size
      val r = list.reverse.toArray
      for (i <- 0 until (n-1) )print(r(i))
      print(r(n - 1))
    }
    def run: Unit = reversingPrint(inputNumbers)
}
object Main {
  def main(args: Array[String]) Unit = run
}