import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] input = new int[n];
        for (int i = 0; i < n; i++) {
            input[i] = sc.nextInt();
        }

        System.out.print(input[n - 1]);
        for (int i = n - 2; i >= 0; i--) {
            System.out.print(" " + input[i]);
        }
        System.out.println();
    }
}
 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[] input = new int[n];
        for (int i = 0; i < n; i++) {
            input[i] = sc.nextInt();
        }

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

        System.out.print(input[n - 1]);
        for (int i = n - 2; i >= 0; i--) {
            System.out.print(" " + input[i]);
        }
        System.out.println();
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] input = new int[n];
        for (int i = 0; i < n; i++) {
            input[i] = sc.nextInt();
        }

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

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

        System.out.print(input[n - 1]);
        for (int i = n - 2; i >= 0; i--) {
            System.out.print(" " + input[i]);
        }
        System.out.println();
    }
} 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[] input = new int[n];
        for (int i = 0; i < n; i++) {
            input[i] = sc.nextInt();
        }

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

