import java.util.Scanner;
import java.util.Collections;
import java.util.ArrayList;

public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in); 
		
		int n = scan.nextInt();
		ArrayList<Integer> num = new ArrayList<Integer>();
		
		for(int i = 0; i < n; i++){
			num.add(scan.nextInt());
		}
		
		Collections.reverse(num);
		
		for(int i = 0; i < num.size(); i++){
			int b = num.get(i);
			System.out.print(b);
			if(i != n - 1){
				System.out.print(" ");
			}
			
		}
		System.out.println();
		}
	}
	
	 import java.util.Scanner; Scanner java.util import java.util.Collections; Collections java.util import java.util.ArrayList; ArrayList java.util public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in); 
		
		int n = scan.nextInt();
		ArrayList<Integer> num = new ArrayList<Integer>();
		
		for(int i = 0; i < n; i++){
			num.add(scan.nextInt());
		}
		
		Collections.reverse(num);
		
		for(int i = 0; i < num.size(); i++){
			int b = num.get(i);
			System.out.print(b);
			if(i != n - 1){
				System.out.print(" ");
			}
			
		}
		System.out.println();
		}
	} Main public static void main(String args[]){
		Scanner scan = new Scanner(System.in); 
		
		int n = scan.nextInt();
		ArrayList<Integer> num = new ArrayList<Integer>();
		
		for(int i = 0; i < n; i++){
			num.add(scan.nextInt());
		}
		
		Collections.reverse(num);
		
		for(int i = 0; i < num.size(); i++){
			int b = num.get(i);
			System.out.print(b);
			if(i != n - 1){
				System.out.print(" ");
			}
			
		}
		System.out.println();
		} main {
		Scanner scan = new Scanner(System.in); 
		
		int n = scan.nextInt();
		ArrayList<Integer> num = new ArrayList<Integer>();
		
		for(int i = 0; i < n; i++){
			num.add(scan.nextInt());
		}
		
		Collections.reverse(num);
		
		for(int i = 0; i < num.size(); i++){
			int b = num.get(i);
			System.out.print(b);
			if(i != n - 1){
				System.out.print(" ");
			}
			
		}
		System.out.println();
		} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan ArrayList<Integer> num = new ArrayList<Integer>(); num new ArrayList<Integer>() for(int i = 0; i < n; i++){
			num.add(scan.nextInt());
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			num.add(scan.nextInt());
		} {
			num.add(scan.nextInt());
		} num.add(scan.nextInt()) num.add num scan.nextInt() scan.nextInt scan Collections.reverse(num) Collections.reverse Collections num for(int i = 0; i < num.size(); i++){
			int b = num.get(i);
			System.out.print(b);
			if(i != n - 1){
				System.out.print(" ");
			}
			
		} int i = 0; int i = 0; i 0 i < num.size() i num.size() num.size num i++ i++ i {
			int b = num.get(i);
			System.out.print(b);
			if(i != n - 1){
				System.out.print(" ");
			}
			
		} {
			int b = num.get(i);
			System.out.print(b);
			if(i != n - 1){
				System.out.print(" ");
			}
			
		} int b = num.get(i); b num.get(i) num.get num i System.out.print(b) System.out.print System.out System System.out b if(i != n - 1){
				System.out.print(" ");
			} i != n - 1 i n - 1 n 1 {
				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[]){
		Scanner scan = new Scanner(System.in); 
		
		int n = scan.nextInt();
		ArrayList<Integer> num = new ArrayList<Integer>();
		
		for(int i = 0; i < n; i++){
			num.add(scan.nextInt());
		}
		
		Collections.reverse(num);
		
		for(int i = 0; i < num.size(); i++){
			int b = num.get(i);
			System.out.print(b);
			if(i != n - 1){
				System.out.print(" ");
			}
			
		}
		System.out.println();
		}
	} public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in); 
		
		int n = scan.nextInt();
		ArrayList<Integer> num = new ArrayList<Integer>();
		
		for(int i = 0; i < n; i++){
			num.add(scan.nextInt());
		}
		
		Collections.reverse(num);
		
		for(int i = 0; i < num.size(); i++){
			int b = num.get(i);
			System.out.print(b);
			if(i != n - 1){
				System.out.print(" ");
			}
			
		}
		System.out.println();
		}
	} Main
import java.util.Scanner;
import java.util.Collections;
import java.util.ArrayList;

public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in); 
		
		int n = scan.nextInt();
		ArrayList<Integer> num = new ArrayList<Integer>();
		
		for(int i = 0; i < n; i++){
			num.add(scan.nextInt());
		}
		
		Collections.reverse(num);
		
		for(int i = 0; i < num.size(); i++){
			int b = num.get(i);
			System.out.print(b);
			if(i != n - 1){
				System.out.print(" ");
			}
			
		}
		System.out.println();
		}
	}
	
	