import java.util.ArrayList;
import static java.util.Collections.reverse;
import java.util.List;
import java.util.Scanner;

/**
 *
 * @author lenovo
 */
public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        List<Integer> list = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            int a = scanner.nextInt();
            list.add(a);

        }
        // Collections.sort(list, Collections.reverseOrder());
        reverse(list);
        for (int i = 0; i < list.size(); i++) {
            Integer get = list.get(i);
            if (i == list.size()-1) {
                System.out.print(get);
            } else {
                System.out.print(get + " ");
            }
        }
        System.out.println();
    }

} import java.util.ArrayList; ArrayList java.util import static java.util.Collections.reverse; import static java.util.Collections.reverse; import static java.util.Collections.reverse; import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        List<Integer> list = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            int a = scanner.nextInt();
            list.add(a);

        }
        // Collections.sort(list, Collections.reverseOrder());
        reverse(list);
        for (int i = 0; i < list.size(); i++) {
            Integer get = list.get(i);
            if (i == list.size()-1) {
                System.out.print(get);
            } else {
                System.out.print(get + " ");
            }
        }
        System.out.println();
    }

} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        List<Integer> list = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            int a = scanner.nextInt();
            list.add(a);

        }
        // Collections.sort(list, Collections.reverseOrder());
        reverse(list);
        for (int i = 0; i < list.size(); i++) {
            Integer get = list.get(i);
            if (i == list.size()-1) {
                System.out.print(get);
            } else {
                System.out.print(get + " ");
            }
        }
        System.out.println();
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        List<Integer> list = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            int a = scanner.nextInt();
            list.add(a);

        }
        // Collections.sort(list, Collections.reverseOrder());
        reverse(list);
        for (int i = 0; i < list.size(); i++) {
            Integer get = list.get(i);
            if (i == list.size()-1) {
                System.out.print(get);
            } else {
                System.out.print(get + " ");
            }
        }
        System.out.println();
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner List<Integer> list = new ArrayList<>(); list new ArrayList<>() for (int i = 0; i < n; i++) {
            int a = scanner.nextInt();
            list.add(a);

        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int a = scanner.nextInt();
            list.add(a);

        } {
            int a = scanner.nextInt();
            list.add(a);

        } int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner list.add(a) list.add list a reverse(list) reverse list for (int i = 0; i < list.size(); i++) {
            Integer get = list.get(i);
            if (i == list.size()-1) {
                System.out.print(get);
            } else {
                System.out.print(get + " ");
            }
        } int i = 0; int i = 0; i 0 i < list.size() i list.size() list.size list i++ i++ i {
            Integer get = list.get(i);
            if (i == list.size()-1) {
                System.out.print(get);
            } else {
                System.out.print(get + " ");
            }
        } {
            Integer get = list.get(i);
            if (i == list.size()-1) {
                System.out.print(get);
            } else {
                System.out.print(get + " ");
            }
        } Integer get = list.get(i); get list.get(i) list.get list i if (i == list.size()-1) {
                System.out.print(get);
            } else {
                System.out.print(get + " ");
            } i == list.size()-1 i list.size()-1 list.size() list.size list 1 {
                System.out.print(get);
            } System.out.print(get) System.out.print System.out System System.out get {
                System.out.print(get + " ");
            } System.out.print(get + " ") System.out.print System.out System System.out get + " " get " " System.out.println() System.out.println System.out System System.out String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        List<Integer> list = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            int a = scanner.nextInt();
            list.add(a);

        }
        // Collections.sort(list, Collections.reverseOrder());
        reverse(list);
        for (int i = 0; i < list.size(); i++) {
            Integer get = list.get(i);
            if (i == list.size()-1) {
                System.out.print(get);
            } else {
                System.out.print(get + " ");
            }
        }
        System.out.println();
    }

} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        List<Integer> list = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            int a = scanner.nextInt();
            list.add(a);

        }
        // Collections.sort(list, Collections.reverseOrder());
        reverse(list);
        for (int i = 0; i < list.size(); i++) {
            Integer get = list.get(i);
            if (i == list.size()-1) {
                System.out.print(get);
            } else {
                System.out.print(get + " ");
            }
        }
        System.out.println();
    }

} Main
import java.util.ArrayList;
import static java.util.Collections.reverse;
import java.util.List;
import java.util.Scanner;

/**
 *
 * @author lenovo
 */
public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        List<Integer> list = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            int a = scanner.nextInt();
            list.add(a);

        }
        // Collections.sort(list, Collections.reverseOrder());
        reverse(list);
        for (int i = 0; i < list.size(); i++) {
            Integer get = list.get(i);
            if (i == list.size()-1) {
                System.out.print(get);
            } else {
                System.out.print(get + " ");
            }
        }
        System.out.println();
    }

}