import java.util.*;

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

        ArrayList<String> a = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            a.add(scan.next());
        }

        Collections.reverse(a);
        for(int i = 0; i < a.size(); i++){
            if(i < a.size()-1){
                System.out.print(a.get(i) + " ");
            }else{
                System.out.print(a.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();
        String[] string = new String[n];

        ArrayList<String> a = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            a.add(scan.next());
        }

        Collections.reverse(a);
        for(int i = 0; i < a.size(); i++){
            if(i < a.size()-1){
                System.out.print(a.get(i) + " ");
            }else{
                System.out.print(a.get(i));
            }
        }
        System.out.println();
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String[] string = new String[n];

        ArrayList<String> a = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            a.add(scan.next());
        }

        Collections.reverse(a);
        for(int i = 0; i < a.size(); i++){
            if(i < a.size()-1){
                System.out.print(a.get(i) + " ");
            }else{
                System.out.print(a.get(i));
            }
        }
        System.out.println();
    } main {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String[] string = new String[n];

        ArrayList<String> a = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            a.add(scan.next());
        }

        Collections.reverse(a);
        for(int i = 0; i < a.size(); i++){
            if(i < a.size()-1){
                System.out.print(a.get(i) + " ");
            }else{
                System.out.print(a.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 String[] string = new String[n]; string new String[n] n ArrayList<String> a = new ArrayList<>(); a new ArrayList<>() for (int i = 0; i < n; i++) {
            a.add(scan.next());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            a.add(scan.next());
        } {
            a.add(scan.next());
        } a.add(scan.next()) a.add a scan.next() scan.next scan Collections.reverse(a) Collections.reverse Collections a for(int i = 0; i < a.size(); i++){
            if(i < a.size()-1){
                System.out.print(a.get(i) + " ");
            }else{
                System.out.print(a.get(i));
            }
        } int i = 0; int i = 0; i 0 i < a.size() i a.size() a.size a i++ i++ i {
            if(i < a.size()-1){
                System.out.print(a.get(i) + " ");
            }else{
                System.out.print(a.get(i));
            }
        } {
            if(i < a.size()-1){
                System.out.print(a.get(i) + " ");
            }else{
                System.out.print(a.get(i));
            }
        } if(i < a.size()-1){
                System.out.print(a.get(i) + " ");
            }else{
                System.out.print(a.get(i));
            } i < a.size()-1 i a.size()-1 a.size() a.size a 1 {
                System.out.print(a.get(i) + " ");
            } System.out.print(a.get(i) + " ") System.out.print System.out System System.out a.get(i) + " " a.get(i) a.get a i " " {
                System.out.print(a.get(i));
            } System.out.print(a.get(i)) System.out.print System.out System System.out a.get(i) a.get a 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();
        String[] string = new String[n];

        ArrayList<String> a = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            a.add(scan.next());
        }

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

        ArrayList<String> a = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            a.add(scan.next());
        }

        Collections.reverse(a);
        for(int i = 0; i < a.size(); i++){
            if(i < a.size()-1){
                System.out.print(a.get(i) + " ");
            }else{
                System.out.print(a.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();
        String[] string = new String[n];

        ArrayList<String> a = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            a.add(scan.next());
        }

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