import java.util.Scanner;
public class Main {
	void reverse(){
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int a[] = new int[n];
		for(int i = 0;i < n;i++){
			a[i] = s.nextInt();
		}
		for(int i = n-1;i >= 0;i--){
			System.out.print(a[i]);
			if(i > 0){
				System.out.print(" ");
			}else{
				System.out.print("\n");
			}
		}
	}
	public static void main(String args[]){
		Main m = new Main();
		m.reverse();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	void reverse(){
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int a[] = new int[n];
		for(int i = 0;i < n;i++){
			a[i] = s.nextInt();
		}
		for(int i = n-1;i >= 0;i--){
			System.out.print(a[i]);
			if(i > 0){
				System.out.print(" ");
			}else{
				System.out.print("\n");
			}
		}
	}
	public static void main(String args[]){
		Main m = new Main();
		m.reverse();
	}
} Main void reverse(){
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int a[] = new int[n];
		for(int i = 0;i < n;i++){
			a[i] = s.nextInt();
		}
		for(int i = n-1;i >= 0;i--){
			System.out.print(a[i]);
			if(i > 0){
				System.out.print(" ");
			}else{
				System.out.print("\n");
			}
		}
	} reverse {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int a[] = new int[n];
		for(int i = 0;i < n;i++){
			a[i] = s.nextInt();
		}
		for(int i = n-1;i >= 0;i--){
			System.out.print(a[i]);
			if(i > 0){
				System.out.print(" ");
			}else{
				System.out.print("\n");
			}
		}
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s int a[] = new int[n]; a new int[n] n for(int i = 0;i < n;i++){
			a[i] = s.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			a[i] = s.nextInt();
		} {
			a[i] = s.nextInt();
		} a[i] = s.nextInt() a[i] a i s.nextInt() s.nextInt s for(int i = n-1;i >= 0;i--){
			System.out.print(a[i]);
			if(i > 0){
				System.out.print(" ");
			}else{
				System.out.print("\n");
			}
		} int i = n-1; int i = n-1; i n-1 n 1 i >= 0 i 0 i-- i-- i {
			System.out.print(a[i]);
			if(i > 0){
				System.out.print(" ");
			}else{
				System.out.print("\n");
			}
		} {
			System.out.print(a[i]);
			if(i > 0){
				System.out.print(" ");
			}else{
				System.out.print("\n");
			}
		} System.out.print(a[i]) System.out.print System.out System System.out a[i] a i if(i > 0){
				System.out.print(" ");
			}else{
				System.out.print("\n");
			} i > 0 i 0 {
				System.out.print(" ");
			} System.out.print(" ") System.out.print System.out System System.out " " {
				System.out.print("\n");
			} System.out.print("\n") System.out.print System.out System System.out "\n" public static void main(String args[]){
		Main m = new Main();
		m.reverse();
	} main {
		Main m = new Main();
		m.reverse();
	} Main m = new Main(); m new Main() m.reverse() m.reverse m String args[] args public class Main {
	void reverse(){
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int a[] = new int[n];
		for(int i = 0;i < n;i++){
			a[i] = s.nextInt();
		}
		for(int i = n-1;i >= 0;i--){
			System.out.print(a[i]);
			if(i > 0){
				System.out.print(" ");
			}else{
				System.out.print("\n");
			}
		}
	}
	public static void main(String args[]){
		Main m = new Main();
		m.reverse();
	}
} public class Main {
	void reverse(){
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int a[] = new int[n];
		for(int i = 0;i < n;i++){
			a[i] = s.nextInt();
		}
		for(int i = n-1;i >= 0;i--){
			System.out.print(a[i]);
			if(i > 0){
				System.out.print(" ");
			}else{
				System.out.print("\n");
			}
		}
	}
	public static void main(String args[]){
		Main m = new Main();
		m.reverse();
	}
} Main
import java.util.Scanner;
public class Main {
	void reverse(){
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int a[] = new int[n];
		for(int i = 0;i < n;i++){
			a[i] = s.nextInt();
		}
		for(int i = n-1;i >= 0;i--){
			System.out.print(a[i]);
			if(i > 0){
				System.out.print(" ");
			}else{
				System.out.print("\n");
			}
		}
	}
	public static void main(String args[]){
		Main m = new Main();
		m.reverse();
	}
}