import java.util.Scanner;
class Main {
	private static int[] k = new int[101];
	public void kami() {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		if(n <= 100){
			for(int x = 1; x <= n; x++){
				 k[x] = sc.nextInt();
			}
			for(int i = n; i >= 2; i--){
				for(int j = n - 1; j >= 1; j--){
					if(j < i){
						int work = k[j];
						k[j] = k[i];
						k[i] = work;
					}
				}
			}
			for(int i = 1; i <= n - 1; i++){
				System.out.print(k[i] + " ");
			}
			System.out.println(k[n]);
		}
	}

	public static void main(String[] args) {

		new Main().kami();
	}

} import java.util.Scanner; Scanner java.util class Main {
	private static int[] k = new int[101];
	public void kami() {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		if(n <= 100){
			for(int x = 1; x <= n; x++){
				 k[x] = sc.nextInt();
			}
			for(int i = n; i >= 2; i--){
				for(int j = n - 1; j >= 1; j--){
					if(j < i){
						int work = k[j];
						k[j] = k[i];
						k[i] = work;
					}
				}
			}
			for(int i = 1; i <= n - 1; i++){
				System.out.print(k[i] + " ");
			}
			System.out.println(k[n]);
		}
	}

	public static void main(String[] args) {

		new Main().kami();
	}

} Main private static int[] k = new int[101]; k new int[101] 101 public void kami() {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		if(n <= 100){
			for(int x = 1; x <= n; x++){
				 k[x] = sc.nextInt();
			}
			for(int i = n; i >= 2; i--){
				for(int j = n - 1; j >= 1; j--){
					if(j < i){
						int work = k[j];
						k[j] = k[i];
						k[i] = work;
					}
				}
			}
			for(int i = 1; i <= n - 1; i++){
				System.out.print(k[i] + " ");
			}
			System.out.println(k[n]);
		}
	} kami {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		if(n <= 100){
			for(int x = 1; x <= n; x++){
				 k[x] = sc.nextInt();
			}
			for(int i = n; i >= 2; i--){
				for(int j = n - 1; j >= 1; j--){
					if(j < i){
						int work = k[j];
						k[j] = k[i];
						k[i] = work;
					}
				}
			}
			for(int i = 1; i <= n - 1; i++){
				System.out.print(k[i] + " ");
			}
			System.out.println(k[n]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc if(n <= 100){
			for(int x = 1; x <= n; x++){
				 k[x] = sc.nextInt();
			}
			for(int i = n; i >= 2; i--){
				for(int j = n - 1; j >= 1; j--){
					if(j < i){
						int work = k[j];
						k[j] = k[i];
						k[i] = work;
					}
				}
			}
			for(int i = 1; i <= n - 1; i++){
				System.out.print(k[i] + " ");
			}
			System.out.println(k[n]);
		} n <= 100 n 100 {
			for(int x = 1; x <= n; x++){
				 k[x] = sc.nextInt();
			}
			for(int i = n; i >= 2; i--){
				for(int j = n - 1; j >= 1; j--){
					if(j < i){
						int work = k[j];
						k[j] = k[i];
						k[i] = work;
					}
				}
			}
			for(int i = 1; i <= n - 1; i++){
				System.out.print(k[i] + " ");
			}
			System.out.println(k[n]);
		} for(int x = 1; x <= n; x++){
				 k[x] = sc.nextInt();
			} int x = 1; int x = 1; x 1 x <= n x n x++ x++ x {
				 k[x] = sc.nextInt();
			} {
				 k[x] = sc.nextInt();
			} k[x] = sc.nextInt() k[x] k x sc.nextInt() sc.nextInt sc for(int i = n; i >= 2; i--){
				for(int j = n - 1; j >= 1; j--){
					if(j < i){
						int work = k[j];
						k[j] = k[i];
						k[i] = work;
					}
				}
			} int i = n; int i = n; i n i >= 2 i 2 i-- i-- i {
				for(int j = n - 1; j >= 1; j--){
					if(j < i){
						int work = k[j];
						k[j] = k[i];
						k[i] = work;
					}
				}
			} {
				for(int j = n - 1; j >= 1; j--){
					if(j < i){
						int work = k[j];
						k[j] = k[i];
						k[i] = work;
					}
				}
			} for(int j = n - 1; j >= 1; j--){
					if(j < i){
						int work = k[j];
						k[j] = k[i];
						k[i] = work;
					}
				} int j = n - 1; int j = n - 1; j n - 1 n 1 j >= 1 j 1 j-- j-- j {
					if(j < i){
						int work = k[j];
						k[j] = k[i];
						k[i] = work;
					}
				} {
					if(j < i){
						int work = k[j];
						k[j] = k[i];
						k[i] = work;
					}
				} if(j < i){
						int work = k[j];
						k[j] = k[i];
						k[i] = work;
					} j < i j i {
						int work = k[j];
						k[j] = k[i];
						k[i] = work;
					} int work = k[j]; work k[j] k j k[j] = k[i] k[j] k j k[i] k i k[i] = work k[i] k i work for(int i = 1; i <= n - 1; i++){
				System.out.print(k[i] + " ");
			} int i = 1; int i = 1; i 1 i <= n - 1 i n - 1 n 1 i++ i++ i {
				System.out.print(k[i] + " ");
			} {
				System.out.print(k[i] + " ");
			} System.out.print(k[i] + " ") System.out.print System.out System System.out k[i] + " " k[i] k i " " System.out.println(k[n]) System.out.println System.out System System.out k[n] k n public static void main(String[] args) {

		new Main().kami();
	} main {

		new Main().kami();
	} new Main().kami() new Main().kami new Main() String[] args args
import java.util.Scanner;
class Main {
	private static int[] k = new int[101];
	public void kami() {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		if(n <= 100){
			for(int x = 1; x <= n; x++){
				 k[x] = sc.nextInt();
			}
			for(int i = n; i >= 2; i--){
				for(int j = n - 1; j >= 1; j--){
					if(j < i){
						int work = k[j];
						k[j] = k[i];
						k[i] = work;
					}
				}
			}
			for(int i = 1; i <= n - 1; i++){
				System.out.print(k[i] + " ");
			}
			System.out.println(k[n]);
		}
	}

	public static void main(String[] args) {

		new Main().kami();
	}

}