import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner x  = new Scanner(System.in);
		int n = x.nextInt();
		int[] price = new int[n];
		for(int m = 0 ; m < n ; m++){
			price[m] = x.nextInt();
		}
		System.out.print(price[n-1]);
		for(int g = n-2 ; g >= 0 ; g--){
			System.out.print(" " + price[g]);
		}
		System.out.println();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner x  = new Scanner(System.in);
		int n = x.nextInt();
		int[] price = new int[n];
		for(int m = 0 ; m < n ; m++){
			price[m] = x.nextInt();
		}
		System.out.print(price[n-1]);
		for(int g = n-2 ; g >= 0 ; g--){
			System.out.print(" " + price[g]);
		}
		System.out.println();
	}
} Main public static void main(String[] args) {
		Scanner x  = new Scanner(System.in);
		int n = x.nextInt();
		int[] price = new int[n];
		for(int m = 0 ; m < n ; m++){
			price[m] = x.nextInt();
		}
		System.out.print(price[n-1]);
		for(int g = n-2 ; g >= 0 ; g--){
			System.out.print(" " + price[g]);
		}
		System.out.println();
	} main {
		Scanner x  = new Scanner(System.in);
		int n = x.nextInt();
		int[] price = new int[n];
		for(int m = 0 ; m < n ; m++){
			price[m] = x.nextInt();
		}
		System.out.print(price[n-1]);
		for(int g = n-2 ; g >= 0 ; g--){
			System.out.print(" " + price[g]);
		}
		System.out.println();
	} Scanner x  = new Scanner(System.in); x new Scanner(System.in) int n = x.nextInt(); n x.nextInt() x.nextInt x int[] price = new int[n]; price new int[n] n for(int m = 0 ; m < n ; m++){
			price[m] = x.nextInt();
		} int m = 0 ; int m = 0 ; m 0 m < n m n m++ m++ m {
			price[m] = x.nextInt();
		} {
			price[m] = x.nextInt();
		} price[m] = x.nextInt() price[m] price m x.nextInt() x.nextInt x System.out.print(price[n-1]) System.out.print System.out System System.out price[n-1] price n-1 n 1 for(int g = n-2 ; g >= 0 ; g--){
			System.out.print(" " + price[g]);
		} int g = n-2 ; int g = n-2 ; g n-2 n 2 g >= 0 g 0 g-- g-- g {
			System.out.print(" " + price[g]);
		} {
			System.out.print(" " + price[g]);
		} System.out.print(" " + price[g]) System.out.print System.out System System.out " " + price[g] " " price[g] price g System.out.println() System.out.println System.out System System.out String[] args args public class Main {
	public static void main(String[] args) {
		Scanner x  = new Scanner(System.in);
		int n = x.nextInt();
		int[] price = new int[n];
		for(int m = 0 ; m < n ; m++){
			price[m] = x.nextInt();
		}
		System.out.print(price[n-1]);
		for(int g = n-2 ; g >= 0 ; g--){
			System.out.print(" " + price[g]);
		}
		System.out.println();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner x  = new Scanner(System.in);
		int n = x.nextInt();
		int[] price = new int[n];
		for(int m = 0 ; m < n ; m++){
			price[m] = x.nextInt();
		}
		System.out.print(price[n-1]);
		for(int g = n-2 ; g >= 0 ; g--){
			System.out.print(" " + price[g]);
		}
		System.out.println();
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner x  = new Scanner(System.in);
		int n = x.nextInt();
		int[] price = new int[n];
		for(int m = 0 ; m < n ; m++){
			price[m] = x.nextInt();
		}
		System.out.print(price[n-1]);
		for(int g = n-2 ; g >= 0 ; g--){
			System.out.print(" " + price[g]);
		}
		System.out.println();
	}
}