import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		int n;
		List<Integer> iary = new ArrayList<>();
		Scanner stdIn = new Scanner(System.in);
		n = stdIn.nextInt();

		for (int i = 0; i < n; i++) {
			iary.add(stdIn.nextInt());
		}

		for (int i = n-1; i >= 0; i--) {
			System.out.print(iary.get(i));
			if(i == 0) {
				break;
			}
			System.out.print(" ");
		}
		System.out.println();
	}

} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util class Main {

	public static void main(String[] args) {

		int n;
		List<Integer> iary = new ArrayList<>();
		Scanner stdIn = new Scanner(System.in);
		n = stdIn.nextInt();

		for (int i = 0; i < n; i++) {
			iary.add(stdIn.nextInt());
		}

		for (int i = n-1; i >= 0; i--) {
			System.out.print(iary.get(i));
			if(i == 0) {
				break;
			}
			System.out.print(" ");
		}
		System.out.println();
	}

} Main public static void main(String[] args) {

		int n;
		List<Integer> iary = new ArrayList<>();
		Scanner stdIn = new Scanner(System.in);
		n = stdIn.nextInt();

		for (int i = 0; i < n; i++) {
			iary.add(stdIn.nextInt());
		}

		for (int i = n-1; i >= 0; i--) {
			System.out.print(iary.get(i));
			if(i == 0) {
				break;
			}
			System.out.print(" ");
		}
		System.out.println();
	} main {

		int n;
		List<Integer> iary = new ArrayList<>();
		Scanner stdIn = new Scanner(System.in);
		n = stdIn.nextInt();

		for (int i = 0; i < n; i++) {
			iary.add(stdIn.nextInt());
		}

		for (int i = n-1; i >= 0; i--) {
			System.out.print(iary.get(i));
			if(i == 0) {
				break;
			}
			System.out.print(" ");
		}
		System.out.println();
	} int n; n List<Integer> iary = new ArrayList<>(); iary new ArrayList<>() Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) n = stdIn.nextInt() n stdIn.nextInt() stdIn.nextInt stdIn for (int i = 0; i < n; i++) {
			iary.add(stdIn.nextInt());
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			iary.add(stdIn.nextInt());
		} {
			iary.add(stdIn.nextInt());
		} iary.add(stdIn.nextInt()) iary.add iary stdIn.nextInt() stdIn.nextInt stdIn for (int i = n-1; i >= 0; i--) {
			System.out.print(iary.get(i));
			if(i == 0) {
				break;
			}
			System.out.print(" ");
		} int i = n-1; int i = n-1; i n-1 n 1 i >= 0 i 0 i-- i-- i {
			System.out.print(iary.get(i));
			if(i == 0) {
				break;
			}
			System.out.print(" ");
		} {
			System.out.print(iary.get(i));
			if(i == 0) {
				break;
			}
			System.out.print(" ");
		} System.out.print(iary.get(i)) System.out.print System.out System System.out iary.get(i) iary.get iary i if(i == 0) {
				break;
			} i == 0 i 0 {
				break;
			} break; System.out.print(" ") System.out.print System.out System System.out " " System.out.println() System.out.println System.out System System.out String[] args args
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		int n;
		List<Integer> iary = new ArrayList<>();
		Scanner stdIn = new Scanner(System.in);
		n = stdIn.nextInt();

		for (int i = 0; i < n; i++) {
			iary.add(stdIn.nextInt());
		}

		for (int i = n-1; i >= 0; i--) {
			System.out.print(iary.get(i));
			if(i == 0) {
				break;
			}
			System.out.print(" ");
		}
		System.out.println();
	}

}