import java.util.Scanner;


public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = scan.nextInt();
		int[] ar = new int[n];
		for (int i = 0; i < n; i++) {
			int x = scan.nextInt();
			ar[i] = x;
		}
		System.out.print(ar[n-1]);
		for (int i = n - 2; i >= 0; i--) {
			System.out.print(" " + ar[i]);
		}
		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);
		StringBuilder sb = new StringBuilder();
		int n = scan.nextInt();
		int[] ar = new int[n];
		for (int i = 0; i < n; i++) {
			int x = scan.nextInt();
			ar[i] = x;
		}
		System.out.print(ar[n-1]);
		for (int i = n - 2; i >= 0; i--) {
			System.out.print(" " + ar[i]);
		}
		System.out.println();
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = scan.nextInt();
		int[] ar = new int[n];
		for (int i = 0; i < n; i++) {
			int x = scan.nextInt();
			ar[i] = x;
		}
		System.out.print(ar[n-1]);
		for (int i = n - 2; i >= 0; i--) {
			System.out.print(" " + ar[i]);
		}
		System.out.println();
	} main {
		Scanner scan = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = scan.nextInt();
		int[] ar = new int[n];
		for (int i = 0; i < n; i++) {
			int x = scan.nextInt();
			ar[i] = x;
		}
		System.out.print(ar[n-1]);
		for (int i = n - 2; i >= 0; i--) {
			System.out.print(" " + ar[i]);
		}
		System.out.println();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] ar = new int[n]; ar new int[n] n for (int i = 0; i < n; i++) {
			int x = scan.nextInt();
			ar[i] = x;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int x = scan.nextInt();
			ar[i] = x;
		} {
			int x = scan.nextInt();
			ar[i] = x;
		} int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan ar[i] = x ar[i] ar i x System.out.print(ar[n-1]) System.out.print System.out System System.out ar[n-1] ar n-1 n 1 for (int i = n - 2; i >= 0; i--) {
			System.out.print(" " + ar[i]);
		} int i = n - 2; int i = n - 2; i n - 2 n 2 i >= 0 i 0 i-- i-- i {
			System.out.print(" " + ar[i]);
		} {
			System.out.print(" " + ar[i]);
		} System.out.print(" " + ar[i]) System.out.print System.out System System.out " " + ar[i] " " ar[i] ar i 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);
		StringBuilder sb = new StringBuilder();
		int n = scan.nextInt();
		int[] ar = new int[n];
		for (int i = 0; i < n; i++) {
			int x = scan.nextInt();
			ar[i] = x;
		}
		System.out.print(ar[n-1]);
		for (int i = n - 2; i >= 0; i--) {
			System.out.print(" " + ar[i]);
		}
		System.out.println();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = scan.nextInt();
		int[] ar = new int[n];
		for (int i = 0; i < n; i++) {
			int x = scan.nextInt();
			ar[i] = x;
		}
		System.out.print(ar[n-1]);
		for (int i = n - 2; i >= 0; i--) {
			System.out.print(" " + ar[i]);
		}
		System.out.println();
	}
} Main
import java.util.Scanner;


public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = scan.nextInt();
		int[] ar = new int[n];
		for (int i = 0; i < n; i++) {
			int x = scan.nextInt();
			ar[i] = x;
		}
		System.out.print(ar[n-1]);
		for (int i = n - 2; i >= 0; i--) {
			System.out.print(" " + ar[i]);
		}
		System.out.println();
	}
}