import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
    private static Scanner scan;

    public static void main(String[] args) {
        scan = new Scanner(System.in);

        int n = scan.nextInt();
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < n; i++) {
            list.add(scan.nextInt());
        }
        Collections.reverse(list);
        for (int i = 0; i < list.size(); i++) {
            if (i < list.size() - 1) {
                System.out.print(list.get(i).toString() + " ");
            } else {
                System.out.println(list.get(i).toString());
            }
        }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    private static Scanner scan;

    public static void main(String[] args) {
        scan = new Scanner(System.in);

        int n = scan.nextInt();
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < n; i++) {
            list.add(scan.nextInt());
        }
        Collections.reverse(list);
        for (int i = 0; i < list.size(); i++) {
            if (i < list.size() - 1) {
                System.out.print(list.get(i).toString() + " ");
            } else {
                System.out.println(list.get(i).toString());
            }
        }
    }
} Main private static Scanner scan; scan public static void main(String[] args) {
        scan = new Scanner(System.in);

        int n = scan.nextInt();
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < n; i++) {
            list.add(scan.nextInt());
        }
        Collections.reverse(list);
        for (int i = 0; i < list.size(); i++) {
            if (i < list.size() - 1) {
                System.out.print(list.get(i).toString() + " ");
            } else {
                System.out.println(list.get(i).toString());
            }
        }
    } main {
        scan = new Scanner(System.in);

        int n = scan.nextInt();
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < n; i++) {
            list.add(scan.nextInt());
        }
        Collections.reverse(list);
        for (int i = 0; i < list.size(); i++) {
            if (i < list.size() - 1) {
                System.out.print(list.get(i).toString() + " ");
            } else {
                System.out.println(list.get(i).toString());
            }
        }
    } scan = new Scanner(System.in) scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for (int i = 0; i < n; i++) {
            list.add(scan.nextInt());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            list.add(scan.nextInt());
        } {
            list.add(scan.nextInt());
        } list.add(scan.nextInt()) list.add list scan.nextInt() scan.nextInt scan Collections.reverse(list) Collections.reverse Collections list for (int i = 0; i < list.size(); i++) {
            if (i < list.size() - 1) {
                System.out.print(list.get(i).toString() + " ");
            } else {
                System.out.println(list.get(i).toString());
            }
        } int i = 0; int i = 0; i 0 i < list.size() i list.size() list.size list i++ i++ i {
            if (i < list.size() - 1) {
                System.out.print(list.get(i).toString() + " ");
            } else {
                System.out.println(list.get(i).toString());
            }
        } {
            if (i < list.size() - 1) {
                System.out.print(list.get(i).toString() + " ");
            } else {
                System.out.println(list.get(i).toString());
            }
        } if (i < list.size() - 1) {
                System.out.print(list.get(i).toString() + " ");
            } else {
                System.out.println(list.get(i).toString());
            } i < list.size() - 1 i list.size() - 1 list.size() list.size list 1 {
                System.out.print(list.get(i).toString() + " ");
            } System.out.print(list.get(i).toString() + " ") System.out.print System.out System System.out list.get(i).toString() + " " list.get(i).toString() list.get(i).toString list.get(i) list.get list i " " {
                System.out.println(list.get(i).toString());
            } System.out.println(list.get(i).toString()) System.out.println System.out System System.out list.get(i).toString() list.get(i).toString list.get(i) list.get list i String[] args args public class Main {
    private static Scanner scan;

    public static void main(String[] args) {
        scan = new Scanner(System.in);

        int n = scan.nextInt();
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < n; i++) {
            list.add(scan.nextInt());
        }
        Collections.reverse(list);
        for (int i = 0; i < list.size(); i++) {
            if (i < list.size() - 1) {
                System.out.print(list.get(i).toString() + " ");
            } else {
                System.out.println(list.get(i).toString());
            }
        }
    }
} public class Main {
    private static Scanner scan;

    public static void main(String[] args) {
        scan = new Scanner(System.in);

        int n = scan.nextInt();
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < n; i++) {
            list.add(scan.nextInt());
        }
        Collections.reverse(list);
        for (int i = 0; i < list.size(); i++) {
            if (i < list.size() - 1) {
                System.out.print(list.get(i).toString() + " ");
            } else {
                System.out.println(list.get(i).toString());
            }
        }
    }
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
    private static Scanner scan;

    public static void main(String[] args) {
        scan = new Scanner(System.in);

        int n = scan.nextInt();
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < n; i++) {
            list.add(scan.nextInt());
        }
        Collections.reverse(list);
        for (int i = 0; i < list.size(); i++) {
            if (i < list.size() - 1) {
                System.out.print(list.get(i).toString() + " ");
            } else {
                System.out.println(list.get(i).toString());
            }
        }
    }
}