import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        ArrayList<Integer> ls = new ArrayList<>();

        for (int i = 0; i < n; i++) ls.add(scan.nextInt());

        Collections.reverse(ls);
        for (int i = 0; i < ls.size(); i++) {
            System.out.print(i == ls.size() -1? ls.get(i) : ls.get(i) + " ");
        }
        System.out.println();
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        ArrayList<Integer> ls = new ArrayList<>();

        for (int i = 0; i < n; i++) ls.add(scan.nextInt());

        Collections.reverse(ls);
        for (int i = 0; i < ls.size(); i++) {
            System.out.print(i == ls.size() -1? ls.get(i) : ls.get(i) + " ");
        }
        System.out.println();
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        ArrayList<Integer> ls = new ArrayList<>();

        for (int i = 0; i < n; i++) ls.add(scan.nextInt());

        Collections.reverse(ls);
        for (int i = 0; i < ls.size(); i++) {
            System.out.print(i == ls.size() -1? ls.get(i) : ls.get(i) + " ");
        }
        System.out.println();
    } main {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        ArrayList<Integer> ls = new ArrayList<>();

        for (int i = 0; i < n; i++) ls.add(scan.nextInt());

        Collections.reverse(ls);
        for (int i = 0; i < ls.size(); i++) {
            System.out.print(i == ls.size() -1? ls.get(i) : ls.get(i) + " ");
        }
        System.out.println();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan ArrayList<Integer> ls = new ArrayList<>(); ls new ArrayList<>() for (int i = 0; i < n; i++) ls.add(scan.nextInt()); int i = 0; int i = 0; i 0 i < n i n i++ i++ i ls.add(scan.nextInt()); ls.add(scan.nextInt()) ls.add ls scan.nextInt() scan.nextInt scan Collections.reverse(ls) Collections.reverse Collections ls for (int i = 0; i < ls.size(); i++) {
            System.out.print(i == ls.size() -1? ls.get(i) : ls.get(i) + " ");
        } int i = 0; int i = 0; i 0 i < ls.size() i ls.size() ls.size ls i++ i++ i {
            System.out.print(i == ls.size() -1? ls.get(i) : ls.get(i) + " ");
        } {
            System.out.print(i == ls.size() -1? ls.get(i) : ls.get(i) + " ");
        } System.out.print(i == ls.size() -1? ls.get(i) : ls.get(i) + " ") System.out.print System.out System System.out i == ls.size() -1? ls.get(i) : ls.get(i) + " " i == ls.size() -1 i ls.size() -1 ls.size() ls.size ls 1 ls.get(i) ls.get ls i ls.get(i) + " " ls.get(i) ls.get ls 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 scan = new Scanner(System.in);
        int n = scan.nextInt();
        ArrayList<Integer> ls = new ArrayList<>();

        for (int i = 0; i < n; i++) ls.add(scan.nextInt());

        Collections.reverse(ls);
        for (int i = 0; i < ls.size(); i++) {
            System.out.print(i == ls.size() -1? ls.get(i) : ls.get(i) + " ");
        }
        System.out.println();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        ArrayList<Integer> ls = new ArrayList<>();

        for (int i = 0; i < n; i++) ls.add(scan.nextInt());

        Collections.reverse(ls);
        for (int i = 0; i < ls.size(); i++) {
            System.out.print(i == ls.size() -1? ls.get(i) : ls.get(i) + " ");
        }
        System.out.println();
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        ArrayList<Integer> ls = new ArrayList<>();

        for (int i = 0; i < n; i++) ls.add(scan.nextInt());

        Collections.reverse(ls);
        for (int i = 0; i < ls.size(); i++) {
            System.out.print(i == ls.size() -1? ls.get(i) : ls.get(i) + " ");
        }
        System.out.println();
    }
}