import java.util.Scanner;

public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int a[] = new int[100];
		for (int i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}
		System.out.print(a[n - 1]);
		for(int i = n - 2; i >= 0; i--) {
			System.out.print(" " + a[i]);
		}
		System.out.println();
	}
	public static void main(String[] args) {
		Main m = new Main();
		m.run();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int a[] = new int[100];
		for (int i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}
		System.out.print(a[n - 1]);
		for(int i = n - 2; i >= 0; i--) {
			System.out.print(" " + a[i]);
		}
		System.out.println();
	}
	public static void main(String[] args) {
		Main m = new Main();
		m.run();
	}
} Main void run() {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int a[] = new int[100];
		for (int i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}
		System.out.print(a[n - 1]);
		for(int i = n - 2; i >= 0; i--) {
			System.out.print(" " + a[i]);
		}
		System.out.println();
	} run {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int a[] = new int[100];
		for (int i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}
		System.out.print(a[n - 1]);
		for(int i = n - 2; i >= 0; i--) {
			System.out.print(" " + a[i]);
		}
		System.out.println();
	} 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[100]; a new int[100] 100 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 System.out.print(a[n - 1]) System.out.print System.out System System.out a[n - 1] a n - 1 n 1 for(int i = n - 2; i >= 0; i--) {
			System.out.print(" " + a[i]);
		} int i = n - 2; int i = n - 2; i n - 2 n 2 i >= 0 i 0 i-- i-- i {
			System.out.print(" " + a[i]);
		} {
			System.out.print(" " + a[i]);
		} System.out.print(" " + a[i]) System.out.print System.out System System.out " " + a[i] " " a[i] a i System.out.println() System.out.println System.out System System.out public static void main(String[] args) {
		Main m = new Main();
		m.run();
	} main {
		Main m = new Main();
		m.run();
	} Main m = new Main(); m new Main() m.run() m.run m String[] args args public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int a[] = new int[100];
		for (int i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}
		System.out.print(a[n - 1]);
		for(int i = n - 2; i >= 0; i--) {
			System.out.print(" " + a[i]);
		}
		System.out.println();
	}
	public static void main(String[] args) {
		Main m = new Main();
		m.run();
	}
} public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int a[] = new int[100];
		for (int i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}
		System.out.print(a[n - 1]);
		for(int i = n - 2; i >= 0; i--) {
			System.out.print(" " + a[i]);
		}
		System.out.println();
	}
	public static void main(String[] args) {
		Main m = new Main();
		m.run();
	}
} Main
import java.util.Scanner;

public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int a[] = new int[100];
		for (int i = 0; i < n; i++) {
			a[i] = scan.nextInt();
		}
		System.out.print(a[n - 1]);
		for(int i = n - 2; i >= 0; i--) {
			System.out.print(" " + a[i]);
		}
		System.out.println();
	}
	public static void main(String[] args) {
		Main m = new Main();
		m.run();
	}
}