import java.util.Scanner;

public class Main {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for(int i = 0;i < n;++i) a[i] = sc.nextInt();
        StringBuilder sb = new StringBuilder().append(a[n - 1]);
        for(int i = n - 2;i >= 0;--i) sb.append(' ').append(a[i]);
        System.out.println(sb);
    }

} 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[] a = new int[n];
        for(int i = 0;i < n;++i) a[i] = sc.nextInt();
        StringBuilder sb = new StringBuilder().append(a[n - 1]);
        for(int i = n - 2;i >= 0;--i) sb.append(' ').append(a[i]);
        System.out.println(sb);
    }

} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for(int i = 0;i < n;++i) a[i] = sc.nextInt();
        StringBuilder sb = new StringBuilder().append(a[n - 1]);
        for(int i = n - 2;i >= 0;--i) sb.append(' ').append(a[i]);
        System.out.println(sb);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for(int i = 0;i < n;++i) a[i] = sc.nextInt();
        StringBuilder sb = new StringBuilder().append(a[n - 1]);
        for(int i = n - 2;i >= 0;--i) sb.append(' ').append(a[i]);
        System.out.println(sb);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] a = new int[n]; a new int[n] n for(int i = 0;i < n;++i) a[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i < n i n ++i ++i i a[i] = sc.nextInt(); a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc StringBuilder sb = new StringBuilder().append(a[n - 1]); sb new StringBuilder().append(a[n - 1]) new StringBuilder().append new StringBuilder() a[n - 1] a n - 1 n 1 for(int i = n - 2;i >= 0;--i) sb.append(' ').append(a[i]); int i = n - 2; int i = n - 2; i n - 2 n 2 i >= 0 i 0 --i --i i sb.append(' ').append(a[i]); sb.append(' ').append(a[i]) sb.append(' ').append sb.append(' ') sb.append sb ' ' a[i] a i System.out.println(sb) System.out.println System.out System System.out sb String[] args args public class Main {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for(int i = 0;i < n;++i) a[i] = sc.nextInt();
        StringBuilder sb = new StringBuilder().append(a[n - 1]);
        for(int i = n - 2;i >= 0;--i) sb.append(' ').append(a[i]);
        System.out.println(sb);
    }

} public class Main {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for(int i = 0;i < n;++i) a[i] = sc.nextInt();
        StringBuilder sb = new StringBuilder().append(a[n - 1]);
        for(int i = n - 2;i >= 0;--i) sb.append(' ').append(a[i]);
        System.out.println(sb);
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for(int i = 0;i < n;++i) a[i] = sc.nextInt();
        StringBuilder sb = new StringBuilder().append(a[n - 1]);
        for(int i = n - 2;i >= 0;--i) sb.append(' ').append(a[i]);
        System.out.println(sb);
    }

}