import java.util.*;

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

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