import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
Scanner kb=new Scanner(System.in);
int n=kb.nextInt();
ArrayList<Integer> al=new ArrayList<Integer>(n);
for(int i=0;i<n;i++){
	al.add(kb.nextInt());
}
for(int i=n-1;i>=0;i--){
	System.out.printf("%d",al.get(i));
	if(i!=0){
    System.out.print(" ");	
	}
}
System.out.println("");	
	}

} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
Scanner kb=new Scanner(System.in);
int n=kb.nextInt();
ArrayList<Integer> al=new ArrayList<Integer>(n);
for(int i=0;i<n;i++){
	al.add(kb.nextInt());
}
for(int i=n-1;i>=0;i--){
	System.out.printf("%d",al.get(i));
	if(i!=0){
    System.out.print(" ");	
	}
}
System.out.println("");	
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
Scanner kb=new Scanner(System.in);
int n=kb.nextInt();
ArrayList<Integer> al=new ArrayList<Integer>(n);
for(int i=0;i<n;i++){
	al.add(kb.nextInt());
}
for(int i=n-1;i>=0;i--){
	System.out.printf("%d",al.get(i));
	if(i!=0){
    System.out.print(" ");	
	}
}
System.out.println("");	
	} main {
		// TODO ?????????????????????????????????????????????
Scanner kb=new Scanner(System.in);
int n=kb.nextInt();
ArrayList<Integer> al=new ArrayList<Integer>(n);
for(int i=0;i<n;i++){
	al.add(kb.nextInt());
}
for(int i=n-1;i>=0;i--){
	System.out.printf("%d",al.get(i));
	if(i!=0){
    System.out.print(" ");	
	}
}
System.out.println("");	
	} Scanner kb=new Scanner(System.in); kb new Scanner(System.in) int n=kb.nextInt(); n kb.nextInt() kb.nextInt kb ArrayList<Integer> al=new ArrayList<Integer>(n); al new ArrayList<Integer>(n) for(int i=0;i<n;i++){
	al.add(kb.nextInt());
} int i=0; int i=0; i 0 i<n i n i++ i++ i {
	al.add(kb.nextInt());
} {
	al.add(kb.nextInt());
} al.add(kb.nextInt()) al.add al kb.nextInt() kb.nextInt kb for(int i=n-1;i>=0;i--){
	System.out.printf("%d",al.get(i));
	if(i!=0){
    System.out.print(" ");	
	}
} int i=n-1; int i=n-1; i n-1 n 1 i>=0 i 0 i-- i-- i {
	System.out.printf("%d",al.get(i));
	if(i!=0){
    System.out.print(" ");	
	}
} {
	System.out.printf("%d",al.get(i));
	if(i!=0){
    System.out.print(" ");	
	}
} System.out.printf("%d",al.get(i)) System.out.printf System.out System System.out "%d" al.get(i) al.get al i if(i!=0){
    System.out.print(" ");	
	} i!=0 i 0 {
    System.out.print(" ");	
	} System.out.print(" ") System.out.print System.out System System.out " " System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
Scanner kb=new Scanner(System.in);
int n=kb.nextInt();
ArrayList<Integer> al=new ArrayList<Integer>(n);
for(int i=0;i<n;i++){
	al.add(kb.nextInt());
}
for(int i=n-1;i>=0;i--){
	System.out.printf("%d",al.get(i));
	if(i!=0){
    System.out.print(" ");	
	}
}
System.out.println("");	
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
Scanner kb=new Scanner(System.in);
int n=kb.nextInt();
ArrayList<Integer> al=new ArrayList<Integer>(n);
for(int i=0;i<n;i++){
	al.add(kb.nextInt());
}
for(int i=n-1;i>=0;i--){
	System.out.printf("%d",al.get(i));
	if(i!=0){
    System.out.print(" ");	
	}
}
System.out.println("");	
	}

} Main
import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
Scanner kb=new Scanner(System.in);
int n=kb.nextInt();
ArrayList<Integer> al=new ArrayList<Integer>(n);
for(int i=0;i<n;i++){
	al.add(kb.nextInt());
}
for(int i=n-1;i>=0;i--){
	System.out.printf("%d",al.get(i));
	if(i!=0){
    System.out.print(" ");	
	}
}
System.out.println("");	
	}

}