import java.util.*;
class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		Deque<Integer> stack = new LinkedList<Integer>();
		for (int i=0; i<n; i++) {
			stack.add(stdIn.nextInt());
		}
		while(stack.size()>1){
			System.out.print(stack.pollLast()+" ");
		}
		System.out.println(stack.pollLast());
	}
} import java.util.*; util.* java class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		Deque<Integer> stack = new LinkedList<Integer>();
		for (int i=0; i<n; i++) {
			stack.add(stdIn.nextInt());
		}
		while(stack.size()>1){
			System.out.print(stack.pollLast()+" ");
		}
		System.out.println(stack.pollLast());
	}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		Deque<Integer> stack = new LinkedList<Integer>();
		for (int i=0; i<n; i++) {
			stack.add(stdIn.nextInt());
		}
		while(stack.size()>1){
			System.out.print(stack.pollLast()+" ");
		}
		System.out.println(stack.pollLast());
	} main {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		Deque<Integer> stack = new LinkedList<Integer>();
		for (int i=0; i<n; i++) {
			stack.add(stdIn.nextInt());
		}
		while(stack.size()>1){
			System.out.print(stack.pollLast()+" ");
		}
		System.out.println(stack.pollLast());
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int n = stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn Deque<Integer> stack = new LinkedList<Integer>(); stack new LinkedList<Integer>() for (int i=0; i<n; i++) {
			stack.add(stdIn.nextInt());
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			stack.add(stdIn.nextInt());
		} {
			stack.add(stdIn.nextInt());
		} stack.add(stdIn.nextInt()) stack.add stack stdIn.nextInt() stdIn.nextInt stdIn while(stack.size()>1){
			System.out.print(stack.pollLast()+" ");
		} stack.size()>1 stack.size() stack.size stack 1 {
			System.out.print(stack.pollLast()+" ");
		} System.out.print(stack.pollLast()+" ") System.out.print System.out System System.out stack.pollLast()+" " stack.pollLast() stack.pollLast stack " " System.out.println(stack.pollLast()) System.out.println System.out System System.out stack.pollLast() stack.pollLast stack String[] args args
import java.util.*;
class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		Deque<Integer> stack = new LinkedList<Integer>();
		for (int i=0; i<n; i++) {
			stack.add(stdIn.nextInt());
		}
		while(stack.size()>1){
			System.out.print(stack.pollLast()+" ");
		}
		System.out.println(stack.pollLast());
	}
}