
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main{
	public static void main(String[] args)throws Exception{
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String[] line2 = br.readLine().split(" ");
		StringBuilder sb = new StringBuilder();
		
		int n = Integer.parseInt(line1);
		int[] a = new int[n];
		
		int num = n;
		
		for(int i=0; i<n; i++){
			a[i] = Integer.parseInt(line2[num-1]);
			if((i == (n-1)) && (num == (n-i))){
				sb.append(a[i]+"\n");
			}	else{
				sb.append(a[i] +" ");
			}
			num--;
		}
		System.out.print(sb);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main{
	public static void main(String[] args)throws Exception{
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String[] line2 = br.readLine().split(" ");
		StringBuilder sb = new StringBuilder();
		
		int n = Integer.parseInt(line1);
		int[] a = new int[n];
		
		int num = n;
		
		for(int i=0; i<n; i++){
			a[i] = Integer.parseInt(line2[num-1]);
			if((i == (n-1)) && (num == (n-i))){
				sb.append(a[i]+"\n");
			}	else{
				sb.append(a[i] +" ");
			}
			num--;
		}
		System.out.print(sb);
	}
} Main public static void main(String[] args)throws Exception{
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String[] line2 = br.readLine().split(" ");
		StringBuilder sb = new StringBuilder();
		
		int n = Integer.parseInt(line1);
		int[] a = new int[n];
		
		int num = n;
		
		for(int i=0; i<n; i++){
			a[i] = Integer.parseInt(line2[num-1]);
			if((i == (n-1)) && (num == (n-i))){
				sb.append(a[i]+"\n");
			}	else{
				sb.append(a[i] +" ");
			}
			num--;
		}
		System.out.print(sb);
	} main {
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String[] line2 = br.readLine().split(" ");
		StringBuilder sb = new StringBuilder();
		
		int n = Integer.parseInt(line1);
		int[] a = new int[n];
		
		int num = n;
		
		for(int i=0; i<n; i++){
			a[i] = Integer.parseInt(line2[num-1]);
			if((i == (n-1)) && (num == (n-i))){
				sb.append(a[i]+"\n");
			}	else{
				sb.append(a[i] +" ");
			}
			num--;
		}
		System.out.print(sb);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line1 = br.readLine(); line1 br.readLine() br.readLine br String[] line2 = br.readLine().split(" "); line2 br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " StringBuilder sb = new StringBuilder(); sb new StringBuilder() int n = Integer.parseInt(line1); n Integer.parseInt(line1) Integer.parseInt Integer line1 int[] a = new int[n]; a new int[n] n int num = n; num n for(int i=0; i<n; i++){
			a[i] = Integer.parseInt(line2[num-1]);
			if((i == (n-1)) && (num == (n-i))){
				sb.append(a[i]+"\n");
			}	else{
				sb.append(a[i] +" ");
			}
			num--;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			a[i] = Integer.parseInt(line2[num-1]);
			if((i == (n-1)) && (num == (n-i))){
				sb.append(a[i]+"\n");
			}	else{
				sb.append(a[i] +" ");
			}
			num--;
		} {
			a[i] = Integer.parseInt(line2[num-1]);
			if((i == (n-1)) && (num == (n-i))){
				sb.append(a[i]+"\n");
			}	else{
				sb.append(a[i] +" ");
			}
			num--;
		} a[i] = Integer.parseInt(line2[num-1]) a[i] a i Integer.parseInt(line2[num-1]) Integer.parseInt Integer line2[num-1] line2 num-1 num 1 if((i == (n-1)) && (num == (n-i))){
				sb.append(a[i]+"\n");
			}	else{
				sb.append(a[i] +" ");
			} (i == (n-1)) && (num == (n-i)) (i == (n-1)) i (n-1) n 1 (num == (n-i)) num (n-i) n i {
				sb.append(a[i]+"\n");
			} sb.append(a[i]+"\n") sb.append sb a[i]+"\n" a[i] a i "\n" {
				sb.append(a[i] +" ");
			} sb.append(a[i] +" ") sb.append sb a[i] +" " a[i] a i " " num-- num System.out.print(sb) System.out.print System.out System System.out sb String[] args args public class Main{
	public static void main(String[] args)throws Exception{
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String[] line2 = br.readLine().split(" ");
		StringBuilder sb = new StringBuilder();
		
		int n = Integer.parseInt(line1);
		int[] a = new int[n];
		
		int num = n;
		
		for(int i=0; i<n; i++){
			a[i] = Integer.parseInt(line2[num-1]);
			if((i == (n-1)) && (num == (n-i))){
				sb.append(a[i]+"\n");
			}	else{
				sb.append(a[i] +" ");
			}
			num--;
		}
		System.out.print(sb);
	}
} public class Main{
	public static void main(String[] args)throws Exception{
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String[] line2 = br.readLine().split(" ");
		StringBuilder sb = new StringBuilder();
		
		int n = Integer.parseInt(line1);
		int[] a = new int[n];
		
		int num = n;
		
		for(int i=0; i<n; i++){
			a[i] = Integer.parseInt(line2[num-1]);
			if((i == (n-1)) && (num == (n-i))){
				sb.append(a[i]+"\n");
			}	else{
				sb.append(a[i] +" ");
			}
			num--;
		}
		System.out.print(sb);
	}
} Main

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main{
	public static void main(String[] args)throws Exception{
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String[] line2 = br.readLine().split(" ");
		StringBuilder sb = new StringBuilder();
		
		int n = Integer.parseInt(line1);
		int[] a = new int[n];
		
		int num = n;
		
		for(int i=0; i<n; i++){
			a[i] = Integer.parseInt(line2[num-1]);
			if((i == (n-1)) && (num == (n-i))){
				sb.append(a[i]+"\n");
			}	else{
				sb.append(a[i] +" ");
			}
			num--;
		}
		System.out.print(sb);
	}
}