import java.util.Arrays;
import java.util.Scanner;

public class Main {

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

        int n = sc.nextInt();
        int nl[] = new int[n];

        for (int i = 0; i < n; i++) {
            nl[i] = sc.nextInt();
        }

        for (int j = nl.length-1; j >= 0; j--) {
            if (!(j == 0)) {
                System.out.print(nl[j] + " ");
            } else {
                System.out.println(nl[j]);
            }
        }
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

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

        int n = sc.nextInt();
        int nl[] = new int[n];

        for (int i = 0; i < n; i++) {
            nl[i] = sc.nextInt();
        }

        for (int j = nl.length-1; j >= 0; j--) {
            if (!(j == 0)) {
                System.out.print(nl[j] + " ");
            } else {
                System.out.println(nl[j]);
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int nl[] = new int[n];

        for (int i = 0; i < n; i++) {
            nl[i] = sc.nextInt();
        }

        for (int j = nl.length-1; j >= 0; j--) {
            if (!(j == 0)) {
                System.out.print(nl[j] + " ");
            } else {
                System.out.println(nl[j]);
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int nl[] = new int[n];

        for (int i = 0; i < n; i++) {
            nl[i] = sc.nextInt();
        }

        for (int j = nl.length-1; j >= 0; j--) {
            if (!(j == 0)) {
                System.out.print(nl[j] + " ");
            } else {
                System.out.println(nl[j]);
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int nl[] = new int[n]; nl new int[n] n for (int i = 0; i < n; i++) {
            nl[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            nl[i] = sc.nextInt();
        } {
            nl[i] = sc.nextInt();
        } nl[i] = sc.nextInt() nl[i] nl i sc.nextInt() sc.nextInt sc for (int j = nl.length-1; j >= 0; j--) {
            if (!(j == 0)) {
                System.out.print(nl[j] + " ");
            } else {
                System.out.println(nl[j]);
            }
        } int j = nl.length-1; int j = nl.length-1; j nl.length-1 nl.length nl nl.length 1 j >= 0 j 0 j-- j-- j {
            if (!(j == 0)) {
                System.out.print(nl[j] + " ");
            } else {
                System.out.println(nl[j]);
            }
        } {
            if (!(j == 0)) {
                System.out.print(nl[j] + " ");
            } else {
                System.out.println(nl[j]);
            }
        } if (!(j == 0)) {
                System.out.print(nl[j] + " ");
            } else {
                System.out.println(nl[j]);
            } !(j == 0) (j == 0) j 0 {
                System.out.print(nl[j] + " ");
            } System.out.print(nl[j] + " ") System.out.print System.out System System.out nl[j] + " " nl[j] nl j " " {
                System.out.println(nl[j]);
            } System.out.println(nl[j]) System.out.println System.out System System.out nl[j] nl j String[] args args public class Main {

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

        int n = sc.nextInt();
        int nl[] = new int[n];

        for (int i = 0; i < n; i++) {
            nl[i] = sc.nextInt();
        }

        for (int j = nl.length-1; j >= 0; j--) {
            if (!(j == 0)) {
                System.out.print(nl[j] + " ");
            } else {
                System.out.println(nl[j]);
            }
        }
    }
} public class Main {

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

        int n = sc.nextInt();
        int nl[] = new int[n];

        for (int i = 0; i < n; i++) {
            nl[i] = sc.nextInt();
        }

        for (int j = nl.length-1; j >= 0; j--) {
            if (!(j == 0)) {
                System.out.print(nl[j] + " ");
            } else {
                System.out.println(nl[j]);
            }
        }
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

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

        int n = sc.nextInt();
        int nl[] = new int[n];

        for (int i = 0; i < n; i++) {
            nl[i] = sc.nextInt();
        }

        for (int j = nl.length-1; j >= 0; j--) {
            if (!(j == 0)) {
                System.out.print(nl[j] + " ");
            } else {
                System.out.println(nl[j]);
            }
        }
    }
}