import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int x = scan.nextInt();

		int[] array = new int[x];

		if (x == 1) {
			array[0] = scan.nextInt();
			System.out.println(array[0]);
		}

		else {
			for (int i = 0; i < x; i++) {
				array[i] = scan.nextInt();
			}

			System.out.print(array[x - 1] + " ");
			for (int i = x - 2; i > 0; i--) {
				System.out.print(array[i] + " ");
			}
			System.out.println(array[0]);
		}
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int x = scan.nextInt();

		int[] array = new int[x];

		if (x == 1) {
			array[0] = scan.nextInt();
			System.out.println(array[0]);
		}

		else {
			for (int i = 0; i < x; i++) {
				array[i] = scan.nextInt();
			}

			System.out.print(array[x - 1] + " ");
			for (int i = x - 2; i > 0; i--) {
				System.out.print(array[i] + " ");
			}
			System.out.println(array[0]);
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int x = scan.nextInt();

		int[] array = new int[x];

		if (x == 1) {
			array[0] = scan.nextInt();
			System.out.println(array[0]);
		}

		else {
			for (int i = 0; i < x; i++) {
				array[i] = scan.nextInt();
			}

			System.out.print(array[x - 1] + " ");
			for (int i = x - 2; i > 0; i--) {
				System.out.print(array[i] + " ");
			}
			System.out.println(array[0]);
		}
	} main {
		Scanner scan = new Scanner(System.in);

		int x = scan.nextInt();

		int[] array = new int[x];

		if (x == 1) {
			array[0] = scan.nextInt();
			System.out.println(array[0]);
		}

		else {
			for (int i = 0; i < x; i++) {
				array[i] = scan.nextInt();
			}

			System.out.print(array[x - 1] + " ");
			for (int i = x - 2; i > 0; i--) {
				System.out.print(array[i] + " ");
			}
			System.out.println(array[0]);
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan int[] array = new int[x]; array new int[x] x if (x == 1) {
			array[0] = scan.nextInt();
			System.out.println(array[0]);
		}

		else {
			for (int i = 0; i < x; i++) {
				array[i] = scan.nextInt();
			}

			System.out.print(array[x - 1] + " ");
			for (int i = x - 2; i > 0; i--) {
				System.out.print(array[i] + " ");
			}
			System.out.println(array[0]);
		} x == 1 x 1 {
			array[0] = scan.nextInt();
			System.out.println(array[0]);
		} array[0] = scan.nextInt() array[0] array 0 scan.nextInt() scan.nextInt scan System.out.println(array[0]) System.out.println System.out System System.out array[0] array 0 {
			for (int i = 0; i < x; i++) {
				array[i] = scan.nextInt();
			}

			System.out.print(array[x - 1] + " ");
			for (int i = x - 2; i > 0; i--) {
				System.out.print(array[i] + " ");
			}
			System.out.println(array[0]);
		} for (int i = 0; i < x; i++) {
				array[i] = scan.nextInt();
			} int i = 0; int i = 0; i 0 i < x i x i++ i++ i {
				array[i] = scan.nextInt();
			} {
				array[i] = scan.nextInt();
			} array[i] = scan.nextInt() array[i] array i scan.nextInt() scan.nextInt scan System.out.print(array[x - 1] + " ") System.out.print System.out System System.out array[x - 1] + " " array[x - 1] array x - 1 x 1 " " for (int i = x - 2; i > 0; i--) {
				System.out.print(array[i] + " ");
			} int i = x - 2; int i = x - 2; i x - 2 x 2 i > 0 i 0 i-- i-- i {
				System.out.print(array[i] + " ");
			} {
				System.out.print(array[i] + " ");
			} System.out.print(array[i] + " ") System.out.print System.out System System.out array[i] + " " array[i] array i " " System.out.println(array[0]) System.out.println System.out System System.out array[0] array 0 String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int x = scan.nextInt();

		int[] array = new int[x];

		if (x == 1) {
			array[0] = scan.nextInt();
			System.out.println(array[0]);
		}

		else {
			for (int i = 0; i < x; i++) {
				array[i] = scan.nextInt();
			}

			System.out.print(array[x - 1] + " ");
			for (int i = x - 2; i > 0; i--) {
				System.out.print(array[i] + " ");
			}
			System.out.println(array[0]);
		}
	}
}