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];

        for (int i = 0; i < n; i++) {
            string[i] = scan.next();
        }

        for(int i = string.length-1; i >= 0; i--){
            if(i != 0){
                System.out.print(string[i] + " ");
            }else{
                System.out.print(string[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];

        for (int i = 0; i < n; i++) {
            string[i] = scan.next();
        }

        for(int i = string.length-1; i >= 0; i--){
            if(i != 0){
                System.out.print(string[i] + " ");
            }else{
                System.out.print(string[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];

        for (int i = 0; i < n; i++) {
            string[i] = scan.next();
        }

        for(int i = string.length-1; i >= 0; i--){
            if(i != 0){
                System.out.print(string[i] + " ");
            }else{
                System.out.print(string[i]);
            }
        }
        System.out.println();
    } main {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String[] string = new String[n];

        for (int i = 0; i < n; i++) {
            string[i] = scan.next();
        }

        for(int i = string.length-1; i >= 0; i--){
            if(i != 0){
                System.out.print(string[i] + " ");
            }else{
                System.out.print(string[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 for (int i = 0; i < n; i++) {
            string[i] = scan.next();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            string[i] = scan.next();
        } {
            string[i] = scan.next();
        } string[i] = scan.next() string[i] string i scan.next() scan.next scan for(int i = string.length-1; i >= 0; i--){
            if(i != 0){
                System.out.print(string[i] + " ");
            }else{
                System.out.print(string[i]);
            }
        } int i = string.length-1; int i = string.length-1; i string.length-1 string.length string string.length 1 i >= 0 i 0 i-- i-- i {
            if(i != 0){
                System.out.print(string[i] + " ");
            }else{
                System.out.print(string[i]);
            }
        } {
            if(i != 0){
                System.out.print(string[i] + " ");
            }else{
                System.out.print(string[i]);
            }
        } if(i != 0){
                System.out.print(string[i] + " ");
            }else{
                System.out.print(string[i]);
            } i != 0 i 0 {
                System.out.print(string[i] + " ");
            } System.out.print(string[i] + " ") System.out.print System.out System System.out string[i] + " " string[i] string i " " {
                System.out.print(string[i]);
            } System.out.print(string[i]) System.out.print System.out System System.out string[i] string 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];

        for (int i = 0; i < n; i++) {
            string[i] = scan.next();
        }

        for(int i = string.length-1; i >= 0; i--){
            if(i != 0){
                System.out.print(string[i] + " ");
            }else{
                System.out.print(string[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];

        for (int i = 0; i < n; i++) {
            string[i] = scan.next();
        }

        for(int i = string.length-1; i >= 0; i--){
            if(i != 0){
                System.out.print(string[i] + " ");
            }else{
                System.out.print(string[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];

        for (int i = 0; i < n; i++) {
            string[i] = scan.next();
        }

        for(int i = string.length-1; i >= 0; i--){
            if(i != 0){
                System.out.print(string[i] + " ");
            }else{
                System.out.print(string[i]);
            }
        }
        System.out.println();
    }
}