import java.util.Scanner;

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

	static void opi(int[] x) {
		for (int i = 0; i < x.length / 2; i++) {
			int j = x.length - 1 - i;
			int temp = x[i];
			x[i] = x[j];
			x[j] = temp;
		}
	}
} 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[] a = new int[n];
		for (int i = 0; i < n; i++)
			a[i] = sc.nextInt();
		opi(a);
		for (int i = 0; i < n -1; i++)
			System.out.print(a[i] + " ");
		System.out.println(a[n-1]);
		sc.close();
	}

	static void opi(int[] x) {
		for (int i = 0; i < x.length / 2; i++) {
			int j = x.length - 1 - i;
			int temp = x[i];
			x[i] = x[j];
			x[j] = temp;
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++)
			a[i] = sc.nextInt();
		opi(a);
		for (int i = 0; i < n -1; i++)
			System.out.print(a[i] + " ");
		System.out.println(a[n-1]);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++)
			a[i] = sc.nextInt();
		opi(a);
		for (int i = 0; i < n -1; i++)
			System.out.print(a[i] + " ");
		System.out.println(a[n-1]);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] a = new int[n]; a new int[n] n for (int i = 0; i < n; i++)
			a[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i < n i n i++ i++ i a[i] = sc.nextInt(); a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc opi(a) opi a for (int i = 0; i < n -1; i++)
			System.out.print(a[i] + " "); int i = 0; int i = 0; i 0 i < n -1 i n -1 n 1 i++ i++ 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(a[n-1]) System.out.println System.out System System.out a[n-1] a n-1 n 1 sc.close() sc.close sc String[] args args static void opi(int[] x) {
		for (int i = 0; i < x.length / 2; i++) {
			int j = x.length - 1 - i;
			int temp = x[i];
			x[i] = x[j];
			x[j] = temp;
		}
	} opi {
		for (int i = 0; i < x.length / 2; i++) {
			int j = x.length - 1 - i;
			int temp = x[i];
			x[i] = x[j];
			x[j] = temp;
		}
	} for (int i = 0; i < x.length / 2; i++) {
			int j = x.length - 1 - i;
			int temp = x[i];
			x[i] = x[j];
			x[j] = temp;
		} int i = 0; int i = 0; i 0 i < x.length / 2 i x.length / 2 x.length x x.length 2 i++ i++ i {
			int j = x.length - 1 - i;
			int temp = x[i];
			x[i] = x[j];
			x[j] = temp;
		} {
			int j = x.length - 1 - i;
			int temp = x[i];
			x[i] = x[j];
			x[j] = temp;
		} int j = x.length - 1 - i; j x.length - 1 - i x.length - 1 - i x.length x x.length 1 i int temp = x[i]; temp x[i] x i x[i] = x[j] x[i] x i x[j] x j x[j] = temp x[j] x j temp int[] x x public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++)
			a[i] = sc.nextInt();
		opi(a);
		for (int i = 0; i < n -1; i++)
			System.out.print(a[i] + " ");
		System.out.println(a[n-1]);
		sc.close();
	}

	static void opi(int[] x) {
		for (int i = 0; i < x.length / 2; i++) {
			int j = x.length - 1 - i;
			int temp = x[i];
			x[i] = x[j];
			x[j] = temp;
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++)
			a[i] = sc.nextInt();
		opi(a);
		for (int i = 0; i < n -1; i++)
			System.out.print(a[i] + " ");
		System.out.println(a[n-1]);
		sc.close();
	}

	static void opi(int[] x) {
		for (int i = 0; i < x.length / 2; i++) {
			int j = x.length - 1 - i;
			int temp = x[i];
			x[i] = x[j];
			x[j] = temp;
		}
	}
} 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[] a = new int[n];
		for (int i = 0; i < n; i++)
			a[i] = sc.nextInt();
		opi(a);
		for (int i = 0; i < n -1; i++)
			System.out.print(a[i] + " ");
		System.out.println(a[n-1]);
		sc.close();
	}

	static void opi(int[] x) {
		for (int i = 0; i < x.length / 2; i++) {
			int j = x.length - 1 - i;
			int temp = x[i];
			x[i] = x[j];
			x[j] = temp;
		}
	}
}
