import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] arr = new int[n];
		
		//???????????´??°????´?
		for(int i=0; i<n; i++) {
			arr[i] = scan.nextInt();
		}
		//??????????????????????´?????????¨????????????????????????
		for(int j=n-1; j>0; j--) {
			System.out.print(arr[j] + " ");
		}
		System.out.println(arr[0]);
  }
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] arr = new int[n];
		
		//???????????´??°????´?
		for(int i=0; i<n; i++) {
			arr[i] = scan.nextInt();
		}
		//??????????????????????´?????????¨????????????????????????
		for(int j=n-1; j>0; j--) {
			System.out.print(arr[j] + " ");
		}
		System.out.println(arr[0]);
  }
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] arr = new int[n];
		
		//???????????´??°????´?
		for(int i=0; i<n; i++) {
			arr[i] = scan.nextInt();
		}
		//??????????????????????´?????????¨????????????????????????
		for(int j=n-1; j>0; j--) {
			System.out.print(arr[j] + " ");
		}
		System.out.println(arr[0]);
  } main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] arr = new int[n];
		
		//???????????´??°????´?
		for(int i=0; i<n; i++) {
			arr[i] = scan.nextInt();
		}
		//??????????????????????´?????????¨????????????????????????
		for(int j=n-1; j>0; j--) {
			System.out.print(arr[j] + " ");
		}
		System.out.println(arr[0]);
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] arr = new int[n]; arr new int[n] n for(int i=0; i<n; i++) {
			arr[i] = scan.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			arr[i] = scan.nextInt();
		} {
			arr[i] = scan.nextInt();
		} arr[i] = scan.nextInt() arr[i] arr i scan.nextInt() scan.nextInt scan for(int j=n-1; j>0; j--) {
			System.out.print(arr[j] + " ");
		} int j=n-1; int j=n-1; j n-1 n 1 j>0 j 0 j-- j-- j {
			System.out.print(arr[j] + " ");
		} {
			System.out.print(arr[j] + " ");
		} System.out.print(arr[j] + " ") System.out.print System.out System System.out arr[j] + " " arr[j] arr j " " System.out.println(arr[0]) System.out.println System.out System System.out arr[0] arr 0 String[] args args public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] arr = new int[n];
		
		//???????????´??°????´?
		for(int i=0; i<n; i++) {
			arr[i] = scan.nextInt();
		}
		//??????????????????????´?????????¨????????????????????????
		for(int j=n-1; j>0; j--) {
			System.out.print(arr[j] + " ");
		}
		System.out.println(arr[0]);
  }
} public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] arr = new int[n];
		
		//???????????´??°????´?
		for(int i=0; i<n; i++) {
			arr[i] = scan.nextInt();
		}
		//??????????????????????´?????????¨????????????????????????
		for(int j=n-1; j>0; j--) {
			System.out.print(arr[j] + " ");
		}
		System.out.println(arr[0]);
  }
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] arr = new int[n];
		
		//???????????´??°????´?
		for(int i=0; i<n; i++) {
			arr[i] = scan.nextInt();
		}
		//??????????????????????´?????????¨????????????????????????
		for(int j=n-1; j>0; j--) {
			System.out.print(arr[j] + " ");
		}
		System.out.println(arr[0]);
  }
}