import java.util.*;
 
public class Main {
    private static final Scanner scn = new Scanner(System.in);
     
    public static void main(String[] args) {
        int n = scn.nextInt();
        String str = scn.next();
        for(int i = 1; i < n; i++) {
            str = new String(scn.next() + " " + str);
        }
        System.out.println(str);
    }
} import java.util.*; util.* java public class Main {
    private static final Scanner scn = new Scanner(System.in);
     
    public static void main(String[] args) {
        int n = scn.nextInt();
        String str = scn.next();
        for(int i = 1; i < n; i++) {
            str = new String(scn.next() + " " + str);
        }
        System.out.println(str);
    }
} Main private static final Scanner scn = new Scanner(System.in); scn new Scanner(System.in) public static void main(String[] args) {
        int n = scn.nextInt();
        String str = scn.next();
        for(int i = 1; i < n; i++) {
            str = new String(scn.next() + " " + str);
        }
        System.out.println(str);
    } main {
        int n = scn.nextInt();
        String str = scn.next();
        for(int i = 1; i < n; i++) {
            str = new String(scn.next() + " " + str);
        }
        System.out.println(str);
    } int n = scn.nextInt(); n scn.nextInt() scn.nextInt scn String str = scn.next(); str scn.next() scn.next scn for(int i = 1; i < n; i++) {
            str = new String(scn.next() + " " + str);
        } int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
            str = new String(scn.next() + " " + str);
        } {
            str = new String(scn.next() + " " + str);
        } str = new String(scn.next() + " " + str) str new String(scn.next() + " " + str) System.out.println(str) System.out.println System.out System System.out str String[] args args public class Main {
    private static final Scanner scn = new Scanner(System.in);
     
    public static void main(String[] args) {
        int n = scn.nextInt();
        String str = scn.next();
        for(int i = 1; i < n; i++) {
            str = new String(scn.next() + " " + str);
        }
        System.out.println(str);
    }
} public class Main {
    private static final Scanner scn = new Scanner(System.in);
     
    public static void main(String[] args) {
        int n = scn.nextInt();
        String str = scn.next();
        for(int i = 1; i < n; i++) {
            str = new String(scn.next() + " " + str);
        }
        System.out.println(str);
    }
} Main
import java.util.*;
 
public class Main {
    private static final Scanner scn = new Scanner(System.in);
     
    public static void main(String[] args) {
        int n = scn.nextInt();
        String str = scn.next();
        for(int i = 1; i < n; i++) {
            str = new String(scn.next() + " " + str);
        }
        System.out.println(str);
    }
}