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

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		int[] arr = new int[n];
		String[] tmp = br.readLine().split(" ");
		for(int i = 0;i < n;i++){
			arr[i] = Integer.parseInt(tmp[i]);
		}
		tmp = null;
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < n - 1;){
			sb.append(arr[n - ++i]);
			sb.append(" ");
		}
		sb.append(arr[0]);
		System.out.println(sb.toString());
		sb = null;
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		int[] arr = new int[n];
		String[] tmp = br.readLine().split(" ");
		for(int i = 0;i < n;i++){
			arr[i] = Integer.parseInt(tmp[i]);
		}
		tmp = null;
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < n - 1;){
			sb.append(arr[n - ++i]);
			sb.append(" ");
		}
		sb.append(arr[0]);
		System.out.println(sb.toString());
		sb = null;
	}

} Main public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		int[] arr = new int[n];
		String[] tmp = br.readLine().split(" ");
		for(int i = 0;i < n;i++){
			arr[i] = Integer.parseInt(tmp[i]);
		}
		tmp = null;
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < n - 1;){
			sb.append(arr[n - ++i]);
			sb.append(" ");
		}
		sb.append(arr[0]);
		System.out.println(sb.toString());
		sb = null;
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		int[] arr = new int[n];
		String[] tmp = br.readLine().split(" ");
		for(int i = 0;i < n;i++){
			arr[i] = Integer.parseInt(tmp[i]);
		}
		tmp = null;
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < n - 1;){
			sb.append(arr[n - ++i]);
			sb.append(" ");
		}
		sb.append(arr[0]);
		System.out.println(sb.toString());
		sb = null;
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int[] arr = new int[n]; arr new int[n] n String[] tmp = br.readLine().split(" "); tmp br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for(int i = 0;i < n;i++){
			arr[i] = Integer.parseInt(tmp[i]);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			arr[i] = Integer.parseInt(tmp[i]);
		} {
			arr[i] = Integer.parseInt(tmp[i]);
		} arr[i] = Integer.parseInt(tmp[i]) arr[i] arr i Integer.parseInt(tmp[i]) Integer.parseInt Integer tmp[i] tmp i tmp = null tmp null StringBuilder sb = new StringBuilder(); sb new StringBuilder() for(int i = 0;i < n - 1;){
			sb.append(arr[n - ++i]);
			sb.append(" ");
		} int i = 0; int i = 0; i 0 i < n - 1 i n - 1 n 1 {
			sb.append(arr[n - ++i]);
			sb.append(" ");
		} {
			sb.append(arr[n - ++i]);
			sb.append(" ");
		} sb.append(arr[n - ++i]) sb.append sb arr[n - ++i] arr n - ++i n ++i i sb.append(" ") sb.append sb " " sb.append(arr[0]) sb.append sb arr[0] arr 0 System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb sb = null sb null String[] args args public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		int[] arr = new int[n];
		String[] tmp = br.readLine().split(" ");
		for(int i = 0;i < n;i++){
			arr[i] = Integer.parseInt(tmp[i]);
		}
		tmp = null;
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < n - 1;){
			sb.append(arr[n - ++i]);
			sb.append(" ");
		}
		sb.append(arr[0]);
		System.out.println(sb.toString());
		sb = null;
	}

} public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		int[] arr = new int[n];
		String[] tmp = br.readLine().split(" ");
		for(int i = 0;i < n;i++){
			arr[i] = Integer.parseInt(tmp[i]);
		}
		tmp = null;
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < n - 1;){
			sb.append(arr[n - ++i]);
			sb.append(" ");
		}
		sb.append(arr[0]);
		System.out.println(sb.toString());
		sb = null;
	}

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

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		int[] arr = new int[n];
		String[] tmp = br.readLine().split(" ");
		for(int i = 0;i < n;i++){
			arr[i] = Integer.parseInt(tmp[i]);
		}
		tmp = null;
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < n - 1;){
			sb.append(arr[n - ++i]);
			sb.append(" ");
		}
		sb.append(arr[0]);
		System.out.println(sb.toString());
		sb = null;
	}

}