import java.util.*;

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

class Main{
	Scanner scan = new Scanner(System.in);
	int n;
	int i;
	int j;
	public Main(){
		n = scan.nextInt();
		int[] a=new int[n];
		for(i=0; i<n; i++){
			a[i]=scan.nextInt();
		}
		int[] b=new int[n];
		i = 0;
		for(j=n-1;j>=0;j--){
			b[i]=a[j];
			i++;
		}
		for(i=0;i<n;i++){
			System.out.print(b[i]);
                        if(i==n-1){
                            System.out.println("");
                            break;
                        }else{
			    System.out.print(" ");
		        }
	        }
        }
	public static void main(String[] args){
		new Main();
	}
}