import java.util.*;

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

        int[] array;
        array = new int[num];

        for(int i = 0; i < num; i++){
            array[num - 1 - i] = scanner.nextInt();
        }

        for(int i = 0; i < num - 1; i++){
            System.out.print(array[i] + " ");
        }

        System.out.println(array[num - 1]);

        scanner.close();
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        int num;
        Scanner scanner = new Scanner(System.in);
        
        num = scanner.nextInt();

        int[] array;
        array = new int[num];

        for(int i = 0; i < num; i++){
            array[num - 1 - i] = scanner.nextInt();
        }

        for(int i = 0; i < num - 1; i++){
            System.out.print(array[i] + " ");
        }

        System.out.println(array[num - 1]);

        scanner.close();
    }
} Main public static void main(String[] args){
        int num;
        Scanner scanner = new Scanner(System.in);
        
        num = scanner.nextInt();

        int[] array;
        array = new int[num];

        for(int i = 0; i < num; i++){
            array[num - 1 - i] = scanner.nextInt();
        }

        for(int i = 0; i < num - 1; i++){
            System.out.print(array[i] + " ");
        }

        System.out.println(array[num - 1]);

        scanner.close();
    } main {
        int num;
        Scanner scanner = new Scanner(System.in);
        
        num = scanner.nextInt();

        int[] array;
        array = new int[num];

        for(int i = 0; i < num; i++){
            array[num - 1 - i] = scanner.nextInt();
        }

        for(int i = 0; i < num - 1; i++){
            System.out.print(array[i] + " ");
        }

        System.out.println(array[num - 1]);

        scanner.close();
    } int num; num Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) num = scanner.nextInt() num scanner.nextInt() scanner.nextInt scanner int[] array; array array = new int[num] array new int[num] num for(int i = 0; i < num; i++){
            array[num - 1 - i] = scanner.nextInt();
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            array[num - 1 - i] = scanner.nextInt();
        } {
            array[num - 1 - i] = scanner.nextInt();
        } array[num - 1 - i] = scanner.nextInt() array[num - 1 - i] array num - 1 - i num - 1 - i num 1 i scanner.nextInt() scanner.nextInt scanner for(int i = 0; i < num - 1; i++){
            System.out.print(array[i] + " ");
        } int i = 0; int i = 0; i 0 i < num - 1 i num - 1 num 1 i++ i++ i {
            System.out.print(array[i] + " ");
        } {
            System.out.print(array[i] + " ");
        } System.out.print(array[i] + " ") System.out.print System.out System System.out array[i] + " " array[i] array i " " System.out.println(array[num - 1]) System.out.println System.out System System.out array[num - 1] array num - 1 num 1 scanner.close() scanner.close scanner String[] args args public class Main{
    public static void main(String[] args){
        int num;
        Scanner scanner = new Scanner(System.in);
        
        num = scanner.nextInt();

        int[] array;
        array = new int[num];

        for(int i = 0; i < num; i++){
            array[num - 1 - i] = scanner.nextInt();
        }

        for(int i = 0; i < num - 1; i++){
            System.out.print(array[i] + " ");
        }

        System.out.println(array[num - 1]);

        scanner.close();
    }
} public class Main{
    public static void main(String[] args){
        int num;
        Scanner scanner = new Scanner(System.in);
        
        num = scanner.nextInt();

        int[] array;
        array = new int[num];

        for(int i = 0; i < num; i++){
            array[num - 1 - i] = scanner.nextInt();
        }

        for(int i = 0; i < num - 1; i++){
            System.out.print(array[i] + " ");
        }

        System.out.println(array[num - 1]);

        scanner.close();
    }
} Main
import java.util.*;

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

        int[] array;
        array = new int[num];

        for(int i = 0; i < num; i++){
            array[num - 1 - i] = scanner.nextInt();
        }

        for(int i = 0; i < num - 1; i++){
            System.out.print(array[i] + " ");
        }

        System.out.println(array[num - 1]);

        scanner.close();
    }
}
