import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		String n =scan.nextLine();
		int saizu =0;
		while(scan.hasNextInt()){
			int x = scan.nextInt();
			list.add(x);
		}
		for(int i=0;i<=list.size();i++){
			saizu = list.size();
			saizu -= 1;
			saizu -= i;
			System.out.print(list.get(saizu));
			if(saizu == 0){
				System.out.println("");
				break;
			}
			else{
				System.out.print(" ");
			}
		
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.*; util.* java class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		String n =scan.nextLine();
		int saizu =0;
		while(scan.hasNextInt()){
			int x = scan.nextInt();
			list.add(x);
		}
		for(int i=0;i<=list.size();i++){
			saizu = list.size();
			saizu -= 1;
			saizu -= i;
			System.out.print(list.get(saizu));
			if(saizu == 0){
				System.out.println("");
				break;
			}
			else{
				System.out.print(" ");
			}
		
		}
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		String n =scan.nextLine();
		int saizu =0;
		while(scan.hasNextInt()){
			int x = scan.nextInt();
			list.add(x);
		}
		for(int i=0;i<=list.size();i++){
			saizu = list.size();
			saizu -= 1;
			saizu -= i;
			System.out.print(list.get(saizu));
			if(saizu == 0){
				System.out.println("");
				break;
			}
			else{
				System.out.print(" ");
			}
		
		}
	} main {
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		String n =scan.nextLine();
		int saizu =0;
		while(scan.hasNextInt()){
			int x = scan.nextInt();
			list.add(x);
		}
		for(int i=0;i<=list.size();i++){
			saizu = list.size();
			saizu -= 1;
			saizu -= i;
			System.out.print(list.get(saizu));
			if(saizu == 0){
				System.out.println("");
				break;
			}
			else{
				System.out.print(" ");
			}
		
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() String n =scan.nextLine(); n scan.nextLine() scan.nextLine scan int saizu =0; saizu 0 while(scan.hasNextInt()){
			int x = scan.nextInt();
			list.add(x);
		} scan.hasNextInt() scan.hasNextInt scan {
			int x = scan.nextInt();
			list.add(x);
		} int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan list.add(x) list.add list x for(int i=0;i<=list.size();i++){
			saizu = list.size();
			saizu -= 1;
			saizu -= i;
			System.out.print(list.get(saizu));
			if(saizu == 0){
				System.out.println("");
				break;
			}
			else{
				System.out.print(" ");
			}
		
		} int i=0; int i=0; i 0 i<=list.size() i list.size() list.size list i++ i++ i {
			saizu = list.size();
			saizu -= 1;
			saizu -= i;
			System.out.print(list.get(saizu));
			if(saizu == 0){
				System.out.println("");
				break;
			}
			else{
				System.out.print(" ");
			}
		
		} {
			saizu = list.size();
			saizu -= 1;
			saizu -= i;
			System.out.print(list.get(saizu));
			if(saizu == 0){
				System.out.println("");
				break;
			}
			else{
				System.out.print(" ");
			}
		
		} saizu = list.size() saizu list.size() list.size list saizu -= 1 saizu 1 saizu -= i saizu i System.out.print(list.get(saizu)) System.out.print System.out System System.out list.get(saizu) list.get list saizu if(saizu == 0){
				System.out.println("");
				break;
			}
			else{
				System.out.print(" ");
			} saizu == 0 saizu 0 {
				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 " " String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		String n =scan.nextLine();
		int saizu =0;
		while(scan.hasNextInt()){
			int x = scan.nextInt();
			list.add(x);
		}
		for(int i=0;i<=list.size();i++){
			saizu = list.size();
			saizu -= 1;
			saizu -= i;
			System.out.print(list.get(saizu));
			if(saizu == 0){
				System.out.println("");
				break;
			}
			else{
				System.out.print(" ");
			}
		
		}
	}
}