import java.util.*;
import java.lang.*;

/**
 * ReversingNumbers
 */
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int array[] = new int[n];

        for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        }
        System.out.print(array[n - 1]);

        for (int i = 1; i < n; i++) {
            System.out.print(" " + array[n - i - 1]);
        }
        System.out.println();
    }
} import java.util.*; util.* java import java.lang.*; lang.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int array[] = new int[n];

        for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        }
        System.out.print(array[n - 1]);

        for (int i = 1; i < n; i++) {
            System.out.print(" " + array[n - i - 1]);
        }
        System.out.println();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int array[] = new int[n];

        for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        }
        System.out.print(array[n - 1]);

        for (int i = 1; i < n; i++) {
            System.out.print(" " + array[n - i - 1]);
        }
        System.out.println();
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int array[] = new int[n];

        for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        }
        System.out.print(array[n - 1]);

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

        for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        }
        System.out.print(array[n - 1]);

        for (int i = 1; i < n; i++) {
            System.out.print(" " + array[n - i - 1]);
        }
        System.out.println();
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int array[] = new int[n];

        for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        }
        System.out.print(array[n - 1]);

        for (int i = 1; i < n; i++) {
            System.out.print(" " + array[n - i - 1]);
        }
        System.out.println();
    }
} Main
import java.util.*;
import java.lang.*;

/**
 * ReversingNumbers
 */
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int array[] = new int[n];

        for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        }
        System.out.print(array[n - 1]);

        for (int i = 1; i < n; i++) {
            System.out.print(" " + array[n - i - 1]);
        }
        System.out.println();
    }
}
