import java.io.IOException;
import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
//import java.util.*;

public class Main {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> list = new ArrayList<Integer>();
        while (sc.hasNext()){
            list.add(sc.nextInt());
        }
        for (int i = n - 1; i > 0; i--){
            System.out.print(list.get(i)+" ");
            System.out.flush();
        }
        System.out.println(list.get(0));
    }
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util public class Main {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> list = new ArrayList<Integer>();
        while (sc.hasNext()){
            list.add(sc.nextInt());
        }
        for (int i = n - 1; i > 0; i--){
            System.out.print(list.get(i)+" ");
            System.out.flush();
        }
        System.out.println(list.get(0));
    }
} Main public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> list = new ArrayList<Integer>();
        while (sc.hasNext()){
            list.add(sc.nextInt());
        }
        for (int i = n - 1; i > 0; i--){
            System.out.print(list.get(i)+" ");
            System.out.flush();
        }
        System.out.println(list.get(0));
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> list = new ArrayList<Integer>();
        while (sc.hasNext()){
            list.add(sc.nextInt());
        }
        for (int i = n - 1; i > 0; i--){
            System.out.print(list.get(i)+" ");
            System.out.flush();
        }
        System.out.println(list.get(0));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() while (sc.hasNext()){
            list.add(sc.nextInt());
        } sc.hasNext() sc.hasNext sc {
            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)+" ");
            System.out.flush();
        } 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.flush();
        } {
            System.out.print(list.get(i)+" ");
            System.out.flush();
        } 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.flush() System.out.flush System.out System System.out 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) throws IOException {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> list = new ArrayList<Integer>();
        while (sc.hasNext()){
            list.add(sc.nextInt());
        }
        for (int i = n - 1; i > 0; i--){
            System.out.print(list.get(i)+" ");
            System.out.flush();
        }
        System.out.println(list.get(0));
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> list = new ArrayList<Integer>();
        while (sc.hasNext()){
            list.add(sc.nextInt());
        }
        for (int i = n - 1; i > 0; i--){
            System.out.print(list.get(i)+" ");
            System.out.flush();
        }
        System.out.println(list.get(0));
    }
} Main
import java.io.IOException;
import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
//import java.util.*;

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