import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] ai;
		ai = new int[n];

		for (int i = 0; i < n; i++) {
			ai[i] = scan.nextInt();
		}

		//??????1???????????????????¬???????(" " + ai[j])
		System.out.print(ai[n - 1]);
		for (int j = n - 2; j >= 0; j--) {
			System.out.print(" " + ai[j]);
		}
		//????????????
		System.out.println();
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] ai;
		ai = new int[n];

		for (int i = 0; i < n; i++) {
			ai[i] = scan.nextInt();
		}

		//??????1???????????????????¬???????(" " + ai[j])
		System.out.print(ai[n - 1]);
		for (int j = n - 2; j >= 0; j--) {
			System.out.print(" " + ai[j]);
		}
		//????????????
		System.out.println();
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] ai;
		ai = new int[n];

		for (int i = 0; i < n; i++) {
			ai[i] = scan.nextInt();
		}

		//??????1???????????????????¬???????(" " + ai[j])
		System.out.print(ai[n - 1]);
		for (int j = n - 2; j >= 0; j--) {
			System.out.print(" " + ai[j]);
		}
		//????????????
		System.out.println();
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] ai;
		ai = new int[n];

		for (int i = 0; i < n; i++) {
			ai[i] = scan.nextInt();
		}

		//??????1???????????????????¬???????(" " + ai[j])
		System.out.print(ai[n - 1]);
		for (int j = n - 2; j >= 0; j--) {
			System.out.print(" " + ai[j]);
		}
		//????????????
		System.out.println();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] ai; ai ai = new int[n] ai new int[n] n for (int i = 0; i < n; i++) {
			ai[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			ai[i] = scan.nextInt();
		} {
			ai[i] = scan.nextInt();
		} ai[i] = scan.nextInt() ai[i] ai i scan.nextInt() scan.nextInt scan System.out.print(ai[n - 1]) System.out.print System.out System System.out ai[n - 1] ai n - 1 n 1 for (int j = n - 2; j >= 0; j--) {
			System.out.print(" " + ai[j]);
		} int j = n - 2; int j = n - 2; j n - 2 n 2 j >= 0 j 0 j-- j-- j {
			System.out.print(" " + ai[j]);
		} {
			System.out.print(" " + ai[j]);
		} System.out.print(" " + ai[j]) System.out.print System.out System System.out " " + ai[j] " " ai[j] ai j System.out.println() System.out.println System.out System System.out String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] ai;
		ai = new int[n];

		for (int i = 0; i < n; i++) {
			ai[i] = scan.nextInt();
		}

		//??????1???????????????????¬???????(" " + ai[j])
		System.out.print(ai[n - 1]);
		for (int j = n - 2; j >= 0; j--) {
			System.out.print(" " + ai[j]);
		}
		//????????????
		System.out.println();
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] ai;
		ai = new int[n];

		for (int i = 0; i < n; i++) {
			ai[i] = scan.nextInt();
		}

		//??????1???????????????????¬???????(" " + ai[j])
		System.out.print(ai[n - 1]);
		for (int j = n - 2; j >= 0; j--) {
			System.out.print(" " + ai[j]);
		}
		//????????????
		System.out.println();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] ai;
		ai = new int[n];

		for (int i = 0; i < n; i++) {
			ai[i] = scan.nextInt();
		}

		//??????1???????????????????¬???????(" " + ai[j])
		System.out.print(ai[n - 1]);
		for (int j = n - 2; j >= 0; j--) {
			System.out.print(" " + ai[j]);
		}
		//????????????
		System.out.println();
	}

}