import java.util.*;

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

        int n = sc.nextInt();

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

        int n = sc.nextInt();

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

        int n = sc.nextInt();

        int[] ary = new int[n];
        
        for (int i = 0; i < n; i++)
            ary[i] = sc.nextInt();
        
        int j = n - 1;
        System.out.print(ary[j]);
        while (--j >= 0) {
            System.out.print(' ');
            System.out.print(ary[j]);
        }
        System.out.println();
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

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

        int n = sc.nextInt();

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

        int n = sc.nextInt();

        int[] ary = new int[n];
        
        for (int i = 0; i < n; i++)
            ary[i] = sc.nextInt();
        
        int j = n - 1;
        System.out.print(ary[j]);
        while (--j >= 0) {
            System.out.print(' ');
            System.out.print(ary[j]);
        }
        System.out.println();
    }
} Main
import java.util.*;

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

        int n = sc.nextInt();

        int[] ary = new int[n];
        
        for (int i = 0; i < n; i++)
            ary[i] = sc.nextInt();
        
        int j = n - 1;
        System.out.print(ary[j]);
        while (--j >= 0) {
            System.out.print(' ');
            System.out.print(ary[j]);
        }
        System.out.println();
    }
}

