import java.util.*;
import java.io.*;
import java.lang.*;
import java.math.*;
public class Main{
	public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=stdIn.nextInt();
		int[] a=new int[n];
		for(int i=0;i<n;i++){
			a[i]=stdIn.nextInt();
		}
		System.out.print(a[n-1]);
		for(int i=n-2;i>=0;i--)
			System.out.print(" "+a[i]);
		System.out.println("");
	}	
} import java.util.*; util.* java import java.io.*; io.* java import java.lang.*; lang.* java import java.math.*; math.* java public class Main{
	public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=stdIn.nextInt();
		int[] a=new int[n];
		for(int i=0;i<n;i++){
			a[i]=stdIn.nextInt();
		}
		System.out.print(a[n-1]);
		for(int i=n-2;i>=0;i--)
			System.out.print(" "+a[i]);
		System.out.println("");
	}	
} Main public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=stdIn.nextInt();
		int[] a=new int[n];
		for(int i=0;i<n;i++){
			a[i]=stdIn.nextInt();
		}
		System.out.print(a[n-1]);
		for(int i=n-2;i>=0;i--)
			System.out.print(" "+a[i]);
		System.out.println("");
	} main {
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=stdIn.nextInt();
		int[] a=new int[n];
		for(int i=0;i<n;i++){
			a[i]=stdIn.nextInt();
		}
		System.out.print(a[n-1]);
		for(int i=n-2;i>=0;i--)
			System.out.print(" "+a[i]);
		System.out.println("");
	} Scanner stdIn=new Scanner(System.in); stdIn new Scanner(System.in) BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n=stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn int[] a=new int[n]; a new int[n] n for(int i=0;i<n;i++){
			a[i]=stdIn.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			a[i]=stdIn.nextInt();
		} {
			a[i]=stdIn.nextInt();
		} a[i]=stdIn.nextInt() a[i] a i stdIn.nextInt() stdIn.nextInt stdIn System.out.print(a[n-1]) System.out.print System.out System System.out a[n-1] a n-1 n 1 for(int i=n-2;i>=0;i--)
			System.out.print(" "+a[i]); int i=n-2; int i=n-2; i n-2 n 2 i>=0 i 0 i-- i-- i System.out.print(" "+a[i]); System.out.print(" "+a[i]) System.out.print System.out System System.out " "+a[i] " " a[i] a i System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main{
	public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=stdIn.nextInt();
		int[] a=new int[n];
		for(int i=0;i<n;i++){
			a[i]=stdIn.nextInt();
		}
		System.out.print(a[n-1]);
		for(int i=n-2;i>=0;i--)
			System.out.print(" "+a[i]);
		System.out.println("");
	}	
} public class Main{
	public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=stdIn.nextInt();
		int[] a=new int[n];
		for(int i=0;i<n;i++){
			a[i]=stdIn.nextInt();
		}
		System.out.print(a[n-1]);
		for(int i=n-2;i>=0;i--)
			System.out.print(" "+a[i]);
		System.out.println("");
	}	
} Main
import java.util.*;
import java.io.*;
import java.lang.*;
import java.math.*;
public class Main{
	public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=stdIn.nextInt();
		int[] a=new int[n];
		for(int i=0;i<n;i++){
			a[i]=stdIn.nextInt();
		}
		System.out.print(a[n-1]);
		for(int i=n-2;i>=0;i--)
			System.out.print(" "+a[i]);
		System.out.println("");
	}	
}