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

public class Main {
	public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int v = Integer.parseInt(line);

		int[] va = new int[v];
		List<Integer> klist = new ArrayList<Integer>();

		String line2 = sc.nextLine();
		String[] k = line2.split(" ");
		for (int j = 0; j < k.length; j++) {
			va[j] = Integer.parseInt(k[j]);
			klist.add(va[j]);
		}

		java.util.Collections.reverse(klist);
		int val = 0;
		for (Integer integer : klist) {
			System.out.print(integer);
			if (val != v - 1) {
				System.out.print(" ");
			}
			val++;
		}
		System.out.println("");
	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int v = Integer.parseInt(line);

		int[] va = new int[v];
		List<Integer> klist = new ArrayList<Integer>();

		String line2 = sc.nextLine();
		String[] k = line2.split(" ");
		for (int j = 0; j < k.length; j++) {
			va[j] = Integer.parseInt(k[j]);
			klist.add(va[j]);
		}

		java.util.Collections.reverse(klist);
		int val = 0;
		for (Integer integer : klist) {
			System.out.print(integer);
			if (val != v - 1) {
				System.out.print(" ");
			}
			val++;
		}
		System.out.println("");
	}
} Main public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int v = Integer.parseInt(line);

		int[] va = new int[v];
		List<Integer> klist = new ArrayList<Integer>();

		String line2 = sc.nextLine();
		String[] k = line2.split(" ");
		for (int j = 0; j < k.length; j++) {
			va[j] = Integer.parseInt(k[j]);
			klist.add(va[j]);
		}

		java.util.Collections.reverse(klist);
		int val = 0;
		for (Integer integer : klist) {
			System.out.print(integer);
			if (val != v - 1) {
				System.out.print(" ");
			}
			val++;
		}
		System.out.println("");
	} main {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int v = Integer.parseInt(line);

		int[] va = new int[v];
		List<Integer> klist = new ArrayList<Integer>();

		String line2 = sc.nextLine();
		String[] k = line2.split(" ");
		for (int j = 0; j < k.length; j++) {
			va[j] = Integer.parseInt(k[j]);
			klist.add(va[j]);
		}

		java.util.Collections.reverse(klist);
		int val = 0;
		for (Integer integer : klist) {
			System.out.print(integer);
			if (val != v - 1) {
				System.out.print(" ");
			}
			val++;
		}
		System.out.println("");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc int v = Integer.parseInt(line); v Integer.parseInt(line) Integer.parseInt Integer line int[] va = new int[v]; va new int[v] v List<Integer> klist = new ArrayList<Integer>(); klist new ArrayList<Integer>() String line2 = sc.nextLine(); line2 sc.nextLine() sc.nextLine sc String[] k = line2.split(" "); k line2.split(" ") line2.split line2 " " for (int j = 0; j < k.length; j++) {
			va[j] = Integer.parseInt(k[j]);
			klist.add(va[j]);
		} int j = 0; int j = 0; j 0 j < k.length j k.length k k.length j++ j++ j {
			va[j] = Integer.parseInt(k[j]);
			klist.add(va[j]);
		} {
			va[j] = Integer.parseInt(k[j]);
			klist.add(va[j]);
		} va[j] = Integer.parseInt(k[j]) va[j] va j Integer.parseInt(k[j]) Integer.parseInt Integer k[j] k j klist.add(va[j]) klist.add klist va[j] va j java.util.Collections.reverse(klist) java.util.Collections.reverse java.util.Collections java.util java java.util java.util.Collections klist int val = 0; val 0 for (Integer integer : klist) {
			System.out.print(integer);
			if (val != v - 1) {
				System.out.print(" ");
			}
			val++;
		} Integer integer klist {
			System.out.print(integer);
			if (val != v - 1) {
				System.out.print(" ");
			}
			val++;
		} {
			System.out.print(integer);
			if (val != v - 1) {
				System.out.print(" ");
			}
			val++;
		} System.out.print(integer) System.out.print System.out System System.out integer if (val != v - 1) {
				System.out.print(" ");
			} val != v - 1 val v - 1 v 1 {
				System.out.print(" ");
			} System.out.print(" ") System.out.print System.out System System.out " " val++ val System.out.println("") System.out.println System.out System System.out "" String[] arges arges public class Main {
	public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int v = Integer.parseInt(line);

		int[] va = new int[v];
		List<Integer> klist = new ArrayList<Integer>();

		String line2 = sc.nextLine();
		String[] k = line2.split(" ");
		for (int j = 0; j < k.length; j++) {
			va[j] = Integer.parseInt(k[j]);
			klist.add(va[j]);
		}

		java.util.Collections.reverse(klist);
		int val = 0;
		for (Integer integer : klist) {
			System.out.print(integer);
			if (val != v - 1) {
				System.out.print(" ");
			}
			val++;
		}
		System.out.println("");
	}
} public class Main {
	public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int v = Integer.parseInt(line);

		int[] va = new int[v];
		List<Integer> klist = new ArrayList<Integer>();

		String line2 = sc.nextLine();
		String[] k = line2.split(" ");
		for (int j = 0; j < k.length; j++) {
			va[j] = Integer.parseInt(k[j]);
			klist.add(va[j]);
		}

		java.util.Collections.reverse(klist);
		int val = 0;
		for (Integer integer : klist) {
			System.out.print(integer);
			if (val != v - 1) {
				System.out.print(" ");
			}
			val++;
		}
		System.out.println("");
	}
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] arges) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int v = Integer.parseInt(line);

		int[] va = new int[v];
		List<Integer> klist = new ArrayList<Integer>();

		String line2 = sc.nextLine();
		String[] k = line2.split(" ");
		for (int j = 0; j < k.length; j++) {
			va[j] = Integer.parseInt(k[j]);
			klist.add(va[j]);
		}

		java.util.Collections.reverse(klist);
		int val = 0;
		for (Integer integer : klist) {
			System.out.print(integer);
			if (val != v - 1) {
				System.out.print(" ");
			}
			val++;
		}
		System.out.println("");
	}
}