import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc =new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
        int n=sc.nextInt();
        int j=n;
        while(j-->0){
            list.add(sc.nextInt());
        }
        for(int i=n-1;i>0;i--) {
            System.out.print(list.get(i)+" ");
        }
        System.out.println(list.get(0));
    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner sc =new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
        int n=sc.nextInt();
        int j=n;
        while(j-->0){
            list.add(sc.nextInt());
        }
        for(int i=n-1;i>0;i--) {
            System.out.print(list.get(i)+" ");
        }
        System.out.println(list.get(0));
    }
} Main public static void main(String[] args){
        Scanner sc =new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
        int n=sc.nextInt();
        int j=n;
        while(j-->0){
            list.add(sc.nextInt());
        }
        for(int i=n-1;i>0;i--) {
            System.out.print(list.get(i)+" ");
        }
        System.out.println(list.get(0));
    } main {
        Scanner sc =new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
        int n=sc.nextInt();
        int j=n;
        while(j-->0){
            list.add(sc.nextInt());
        }
        for(int i=n-1;i>0;i--) {
            System.out.print(list.get(i)+" ");
        }
        System.out.println(list.get(0));
    } Scanner sc =new Scanner(System.in); sc new Scanner(System.in) List<Integer> list = new ArrayList<>(); list new ArrayList<>() int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int j=n; j n while(j-->0){
            list.add(sc.nextInt());
        } j-->0 j-- j 0 {
            list.add(sc.nextInt());
        } list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc for(int i=n-1;i>0;i--) {
            System.out.print(list.get(i)+" ");
        } int i=n-1; int i=n-1; i n-1 n 1 i>0 i 0 i-- i-- i {
            System.out.print(list.get(i)+" ");
        } {
            System.out.print(list.get(i)+" ");
        } System.out.print(list.get(i)+" ") System.out.print System.out System System.out list.get(i)+" " list.get(i) list.get list i " " System.out.println(list.get(0)) System.out.println System.out System System.out list.get(0) list.get list 0 String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc =new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
        int n=sc.nextInt();
        int j=n;
        while(j-->0){
            list.add(sc.nextInt());
        }
        for(int i=n-1;i>0;i--) {
            System.out.print(list.get(i)+" ");
        }
        System.out.println(list.get(0));
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc =new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
        int n=sc.nextInt();
        int j=n;
        while(j-->0){
            list.add(sc.nextInt());
        }
        for(int i=n-1;i>0;i--) {
            System.out.print(list.get(i)+" ");
        }
        System.out.println(list.get(0));
    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc =new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
        int n=sc.nextInt();
        int j=n;
        while(j-->0){
            list.add(sc.nextInt());
        }
        for(int i=n-1;i>0;i--) {
            System.out.print(list.get(i)+" ");
        }
        System.out.println(list.get(0));
    }
}
