import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);		
		int n = scan.nextInt();
		int[] a = new int[n];

		for (int i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}

		String str = "";

		for (int i = n-1; i >= 0; i--) {
			str += a[i] + " ";
		}

		System.out.println(str.substring(0, str.length()-1));
		scan.close();
	}

} import java.util.Arrays; Arrays java.util 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[] a = new int[n];

		for (int i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}

		String str = "";

		for (int i = n-1; i >= 0; i--) {
			str += a[i] + " ";
		}

		System.out.println(str.substring(0, str.length()-1));
		scan.close();
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);		
		int n = scan.nextInt();
		int[] a = new int[n];

		for (int i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}

		String str = "";

		for (int i = n-1; i >= 0; i--) {
			str += a[i] + " ";
		}

		System.out.println(str.substring(0, str.length()-1));
		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);		
		int n = scan.nextInt();
		int[] a = new int[n];

		for (int i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}

		String str = "";

		for (int i = n-1; i >= 0; i--) {
			str += a[i] + " ";
		}

		System.out.println(str.substring(0, str.length()-1));
		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] a = new int[n]; a new int[n] n for (int i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			a[i] = scan.nextInt();
		} {
			a[i] = scan.nextInt();
		} a[i] = scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan String str = ""; str "" for (int i = n-1; i >= 0; i--) {
			str += a[i] + " ";
		} int i = n-1; int i = n-1; i n-1 n 1 i >= 0 i 0 i-- i-- i {
			str += a[i] + " ";
		} {
			str += a[i] + " ";
		} str += a[i] + " " str a[i] + " " a[i] a i " " System.out.println(str.substring(0, str.length()-1)) System.out.println System.out System System.out str.substring(0, str.length()-1) str.substring str 0 str.length()-1 str.length() str.length str 1 scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);		
		int n = scan.nextInt();
		int[] a = new int[n];

		for (int i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}

		String str = "";

		for (int i = n-1; i >= 0; i--) {
			str += a[i] + " ";
		}

		System.out.println(str.substring(0, str.length()-1));
		scan.close();
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);		
		int n = scan.nextInt();
		int[] a = new int[n];

		for (int i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}

		String str = "";

		for (int i = n-1; i >= 0; i--) {
			str += a[i] + " ";
		}

		System.out.println(str.substring(0, str.length()-1));
		scan.close();
	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);		
		int n = scan.nextInt();
		int[] a = new int[n];

		for (int i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}

		String str = "";

		for (int i = n-1; i >= 0; i--) {
			str += a[i] + " ";
		}

		System.out.println(str.substring(0, str.length()-1));
		scan.close();
	}

}