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();
        StringBuilder sb = new StringBuilder(scn.next());
        for(int i = 1; i < n; i++) {
            sb.insert(0, scn.next() + " ");
        }
        System.out.println(sb);
    }
} 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();
        StringBuilder sb = new StringBuilder(scn.next());
        for(int i = 1; i < n; i++) {
            sb.insert(0, scn.next() + " ");
        }
        System.out.println(sb);
    }
} 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();
        StringBuilder sb = new StringBuilder(scn.next());
        for(int i = 1; i < n; i++) {
            sb.insert(0, scn.next() + " ");
        }
        System.out.println(sb);
    } main {
        int n = scn.nextInt();
        StringBuilder sb = new StringBuilder(scn.next());
        for(int i = 1; i < n; i++) {
            sb.insert(0, scn.next() + " ");
        }
        System.out.println(sb);
    } int n = scn.nextInt(); n scn.nextInt() scn.nextInt scn StringBuilder sb = new StringBuilder(scn.next()); sb new StringBuilder(scn.next()) for(int i = 1; i < n; i++) {
            sb.insert(0, scn.next() + " ");
        } int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
            sb.insert(0, scn.next() + " ");
        } {
            sb.insert(0, scn.next() + " ");
        } sb.insert(0, scn.next() + " ") sb.insert sb 0 scn.next() + " " scn.next() scn.next scn " " System.out.println(sb) System.out.println System.out System System.out sb 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();
        StringBuilder sb = new StringBuilder(scn.next());
        for(int i = 1; i < n; i++) {
            sb.insert(0, scn.next() + " ");
        }
        System.out.println(sb);
    }
} public class Main {
    private static final Scanner scn = new Scanner(System.in);
      
    public static void main(String[] args) {
        int n = scn.nextInt();
        StringBuilder sb = new StringBuilder(scn.next());
        for(int i = 1; i < n; i++) {
            sb.insert(0, scn.next() + " ");
        }
        System.out.println(sb);
    }
} 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();
        StringBuilder sb = new StringBuilder(scn.next());
        for(int i = 1; i < n; i++) {
            sb.insert(0, scn.next() + " ");
        }
        System.out.println(sb);
    }
}