import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] Array = new int[n];
		// Array?????°????????£??\
		for(int i = 0; i < n; i++) {
			Array[i] = sc.nextInt();
		}
		System.out.print(Array[n-1]);
		for(int j = 0; j < n-1; j++) {
			System.out.print(" " + Array[n-2-j]);
		}
		System.out.println();
	}

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

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] Array = new int[n];
		// Array?????°????????£??\
		for(int i = 0; i < n; i++) {
			Array[i] = sc.nextInt();
		}
		System.out.print(Array[n-1]);
		for(int j = 0; j < n-1; j++) {
			System.out.print(" " + Array[n-2-j]);
		}
		System.out.println();
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] Array = new int[n];
		// Array?????°????????£??\
		for(int i = 0; i < n; i++) {
			Array[i] = sc.nextInt();
		}
		System.out.print(Array[n-1]);
		for(int j = 0; j < n-1; j++) {
			System.out.print(" " + Array[n-2-j]);
		}
		System.out.println();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] Array = new int[n]; Array new int[n] n for(int i = 0; i < n; i++) {
			Array[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			Array[i] = sc.nextInt();
		} {
			Array[i] = sc.nextInt();
		} Array[i] = sc.nextInt() Array[i] Array i sc.nextInt() sc.nextInt sc System.out.print(Array[n-1]) System.out.print System.out System System.out Array[n-1] Array n-1 n 1 for(int j = 0; j < n-1; j++) {
			System.out.print(" " + Array[n-2-j]);
		} int j = 0; int j = 0; j 0 j < n-1 j n-1 n 1 j++ j++ j {
			System.out.print(" " + Array[n-2-j]);
		} {
			System.out.print(" " + Array[n-2-j]);
		} System.out.print(" " + Array[n-2-j]) System.out.print System.out System System.out " " + Array[n-2-j] " " Array[n-2-j] Array n-2-j n-2-j n 2 j System.out.println() System.out.println System.out System System.out String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] Array = new int[n];
		// Array?????°????????£??\
		for(int i = 0; i < n; i++) {
			Array[i] = sc.nextInt();
		}
		System.out.print(Array[n-1]);
		for(int j = 0; j < n-1; j++) {
			System.out.print(" " + Array[n-2-j]);
		}
		System.out.println();
	}

} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] Array = new int[n];
		// Array?????°????????£??\
		for(int i = 0; i < n; i++) {
			Array[i] = sc.nextInt();
		}
		System.out.print(Array[n-1]);
		for(int j = 0; j < n-1; j++) {
			System.out.print(" " + Array[n-2-j]);
		}
		System.out.println();
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] Array = new int[n];
		// Array?????°????????£??\
		for(int i = 0; i < n; i++) {
			Array[i] = sc.nextInt();
		}
		System.out.print(Array[n-1]);
		for(int j = 0; j < n-1; j++) {
			System.out.print(" " + Array[n-2-j]);
		}
		System.out.println();
	}

}