import java.awt.*;
import java.awt.geom.*;
import java.io.*;

import java.util.*;
class Main {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] l = new int[n];
		for(int i = 0; i < n; i++) {
			l[i] = sc.nextInt();
		}
		System.out.print(l[n-1]);
		for(int i = n-2; i >= 0; i--) {
			System.out.print(" " + l[i]);
		}
		System.out.println();
	}
} import java.awt.*; awt.* java import java.awt.geom.*; geom.* java.awt import java.io.*; io.* java import java.util.*; util.* java class Main {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] l = new int[n];
		for(int i = 0; i < n; i++) {
			l[i] = sc.nextInt();
		}
		System.out.print(l[n-1]);
		for(int i = n-2; i >= 0; i--) {
			System.out.print(" " + l[i]);
		}
		System.out.println();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] l = new int[n];
		for(int i = 0; i < n; i++) {
			l[i] = sc.nextInt();
		}
		System.out.print(l[n-1]);
		for(int i = n-2; i >= 0; i--) {
			System.out.print(" " + l[i]);
		}
		System.out.println();
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] l = new int[n];
		for(int i = 0; i < n; i++) {
			l[i] = sc.nextInt();
		}
		System.out.print(l[n-1]);
		for(int i = n-2; i >= 0; i--) {
			System.out.print(" " + l[i]);
		}
		System.out.println();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] l = new int[n]; l new int[n] n for(int i = 0; i < n; i++) {
			l[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			l[i] = sc.nextInt();
		} {
			l[i] = sc.nextInt();
		} l[i] = sc.nextInt() l[i] l i sc.nextInt() sc.nextInt sc System.out.print(l[n-1]) System.out.print System.out System System.out l[n-1] l n-1 n 1 for(int i = n-2; i >= 0; i--) {
			System.out.print(" " + l[i]);
		} int i = n-2; int i = n-2; i n-2 n 2 i >= 0 i 0 i-- i-- i {
			System.out.print(" " + l[i]);
		} {
			System.out.print(" " + l[i]);
		} System.out.print(" " + l[i]) System.out.print System.out System System.out " " + l[i] " " l[i] l i System.out.println() System.out.println System.out System System.out String[] args args
import java.awt.*;
import java.awt.geom.*;
import java.io.*;

import java.util.*;
class Main {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] l = new int[n];
		for(int i = 0; i < n; i++) {
			l[i] = sc.nextInt();
		}
		System.out.print(l[n-1]);
		for(int i = n-2; i >= 0; i--) {
			System.out.print(" " + l[i]);
		}
		System.out.println();
	}
}