import java.io.*;
import java.util.ArrayList;
import java.util.Collections;

public class Main {

    public static void main(String[] args) throws IOException {

        int a = 0;

        ArrayList<Integer> list = new ArrayList<>();

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        a = Integer.parseInt(br.readLine());

        String[] line = br.readLine().split(" ");
        for (int i = 0; i < a; i++) {
            list.add(Integer.parseInt(line[i]));
        }

        Collections.reverse(list);

        for (int x = 0; x < a; x++) {
            if (x == a - 1) {
                System.out.println(list.get(x));
            } else {
                System.out.printf("%d ", list.get(x));
            }
        }

    }

} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util public class Main {

    public static void main(String[] args) throws IOException {

        int a = 0;

        ArrayList<Integer> list = new ArrayList<>();

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        a = Integer.parseInt(br.readLine());

        String[] line = br.readLine().split(" ");
        for (int i = 0; i < a; i++) {
            list.add(Integer.parseInt(line[i]));
        }

        Collections.reverse(list);

        for (int x = 0; x < a; x++) {
            if (x == a - 1) {
                System.out.println(list.get(x));
            } else {
                System.out.printf("%d ", list.get(x));
            }
        }

    }

} Main public static void main(String[] args) throws IOException {

        int a = 0;

        ArrayList<Integer> list = new ArrayList<>();

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        a = Integer.parseInt(br.readLine());

        String[] line = br.readLine().split(" ");
        for (int i = 0; i < a; i++) {
            list.add(Integer.parseInt(line[i]));
        }

        Collections.reverse(list);

        for (int x = 0; x < a; x++) {
            if (x == a - 1) {
                System.out.println(list.get(x));
            } else {
                System.out.printf("%d ", list.get(x));
            }
        }

    } main {

        int a = 0;

        ArrayList<Integer> list = new ArrayList<>();

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        a = Integer.parseInt(br.readLine());

        String[] line = br.readLine().split(" ");
        for (int i = 0; i < a; i++) {
            list.add(Integer.parseInt(line[i]));
        }

        Collections.reverse(list);

        for (int x = 0; x < a; x++) {
            if (x == a - 1) {
                System.out.println(list.get(x));
            } else {
                System.out.printf("%d ", list.get(x));
            }
        }

    } int a = 0; a 0 ArrayList<Integer> list = new ArrayList<>(); list new ArrayList<>() BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) a = Integer.parseInt(br.readLine()) a Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String[] line = br.readLine().split(" "); line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (int i = 0; i < a; i++) {
            list.add(Integer.parseInt(line[i]));
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            list.add(Integer.parseInt(line[i]));
        } {
            list.add(Integer.parseInt(line[i]));
        } list.add(Integer.parseInt(line[i])) list.add list Integer.parseInt(line[i]) Integer.parseInt Integer line[i] line i Collections.reverse(list) Collections.reverse Collections list for (int x = 0; x < a; x++) {
            if (x == a - 1) {
                System.out.println(list.get(x));
            } else {
                System.out.printf("%d ", list.get(x));
            }
        } int x = 0; int x = 0; x 0 x < a x a x++ x++ x {
            if (x == a - 1) {
                System.out.println(list.get(x));
            } else {
                System.out.printf("%d ", list.get(x));
            }
        } {
            if (x == a - 1) {
                System.out.println(list.get(x));
            } else {
                System.out.printf("%d ", list.get(x));
            }
        } if (x == a - 1) {
                System.out.println(list.get(x));
            } else {
                System.out.printf("%d ", list.get(x));
            } x == a - 1 x a - 1 a 1 {
                System.out.println(list.get(x));
            } System.out.println(list.get(x)) System.out.println System.out System System.out list.get(x) list.get list x {
                System.out.printf("%d ", list.get(x));
            } System.out.printf("%d ", list.get(x)) System.out.printf System.out System System.out "%d " list.get(x) list.get list x String[] args args public class Main {

    public static void main(String[] args) throws IOException {

        int a = 0;

        ArrayList<Integer> list = new ArrayList<>();

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        a = Integer.parseInt(br.readLine());

        String[] line = br.readLine().split(" ");
        for (int i = 0; i < a; i++) {
            list.add(Integer.parseInt(line[i]));
        }

        Collections.reverse(list);

        for (int x = 0; x < a; x++) {
            if (x == a - 1) {
                System.out.println(list.get(x));
            } else {
                System.out.printf("%d ", list.get(x));
            }
        }

    }

} public class Main {

    public static void main(String[] args) throws IOException {

        int a = 0;

        ArrayList<Integer> list = new ArrayList<>();

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        a = Integer.parseInt(br.readLine());

        String[] line = br.readLine().split(" ");
        for (int i = 0; i < a; i++) {
            list.add(Integer.parseInt(line[i]));
        }

        Collections.reverse(list);

        for (int x = 0; x < a; x++) {
            if (x == a - 1) {
                System.out.println(list.get(x));
            } else {
                System.out.printf("%d ", list.get(x));
            }
        }

    }

} Main
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;

public class Main {

    public static void main(String[] args) throws IOException {

        int a = 0;

        ArrayList<Integer> list = new ArrayList<>();

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        a = Integer.parseInt(br.readLine());

        String[] line = br.readLine().split(" ");
        for (int i = 0; i < a; i++) {
            list.add(Integer.parseInt(line[i]));
        }

        Collections.reverse(list);

        for (int x = 0; x < a; x++) {
            if (x == a - 1) {
                System.out.println(list.get(x));
            } else {
                System.out.printf("%d ", list.get(x));
            }
        }

    }

}