import java.util.*;

public class Main {
    public static void main(String[] args) {
        int[] arr = new int[100];
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        for (int j = n - 1; j > 0; j--) {
            System.out.print(arr[j] + " ");
        }
        System.out.println(arr[0]);
        sc.close();
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        int[] arr = new int[100];
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        for (int j = n - 1; j > 0; j--) {
            System.out.print(arr[j] + " ");
        }
        System.out.println(arr[0]);
        sc.close();
    }
} Main public static void main(String[] args) {
        int[] arr = new int[100];
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        for (int j = n - 1; j > 0; j--) {
            System.out.print(arr[j] + " ");
        }
        System.out.println(arr[0]);
        sc.close();
    } main {
        int[] arr = new int[100];
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        for (int j = n - 1; j > 0; j--) {
            System.out.print(arr[j] + " ");
        }
        System.out.println(arr[0]);
        sc.close();
    } int[] arr = new int[100]; arr new int[100] 100 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            arr[i] = sc.nextInt();
        } {
            arr[i] = sc.nextInt();
        } arr[i] = sc.nextInt() arr[i] arr i sc.nextInt() sc.nextInt sc for (int j = n - 1; j > 0; j--) {
            System.out.print(arr[j] + " ");
        } int j = n - 1; int j = n - 1; j n - 1 n 1 j > 0 j 0 j-- j-- j {
            System.out.print(arr[j] + " ");
        } {
            System.out.print(arr[j] + " ");
        } System.out.print(arr[j] + " ") System.out.print System.out System System.out arr[j] + " " arr[j] arr j " " System.out.println(arr[0]) System.out.println System.out System System.out arr[0] arr 0 sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) {
        int[] arr = new int[100];
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        for (int j = n - 1; j > 0; j--) {
            System.out.print(arr[j] + " ");
        }
        System.out.println(arr[0]);
        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        int[] arr = new int[100];
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        for (int j = n - 1; j > 0; j--) {
            System.out.print(arr[j] + " ");
        }
        System.out.println(arr[0]);
        sc.close();
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        int[] arr = new int[100];
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        for (int j = n - 1; j > 0; j--) {
            System.out.print(arr[j] + " ");
        }
        System.out.println(arr[0]);
        sc.close();
    }
}
