import java.util.Scanner;
public class Main{
    public static void main(String[] args){
            Scanner sc = new Scanner(System.in);
            int n = sc.nextInt();
            int num[] = new int[n];
            for(int i = 0 ; i < n ; i++)
                num[i] = sc.nextInt();
            for(int i = n - 1 ; i > 0 ; i--)
                System.out.print(num[i] + " ");
            System.out.println(num[0]);
    }
} 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 num[] = new int[n];
            for(int i = 0 ; i < n ; i++)
                num[i] = sc.nextInt();
            for(int i = n - 1 ; i > 0 ; i--)
                System.out.print(num[i] + " ");
            System.out.println(num[0]);
    }
} Main public static void main(String[] args){
            Scanner sc = new Scanner(System.in);
            int n = sc.nextInt();
            int num[] = new int[n];
            for(int i = 0 ; i < n ; i++)
                num[i] = sc.nextInt();
            for(int i = n - 1 ; i > 0 ; i--)
                System.out.print(num[i] + " ");
            System.out.println(num[0]);
    } main {
            Scanner sc = new Scanner(System.in);
            int n = sc.nextInt();
            int num[] = new int[n];
            for(int i = 0 ; i < n ; i++)
                num[i] = sc.nextInt();
            for(int i = n - 1 ; i > 0 ; i--)
                System.out.print(num[i] + " ");
            System.out.println(num[0]);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int num[] = new int[n]; num new int[n] n for(int i = 0 ; i < n ; i++)
                num[i] = sc.nextInt(); int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i num[i] = sc.nextInt(); num[i] = sc.nextInt() num[i] num i sc.nextInt() sc.nextInt sc for(int i = n - 1 ; i > 0 ; i--)
                System.out.print(num[i] + " "); int i = n - 1 ; int i = n - 1 ; i n - 1 n 1 i > 0 i 0 i-- i-- i System.out.print(num[i] + " "); System.out.print(num[i] + " ") System.out.print System.out System System.out num[i] + " " num[i] num i " " System.out.println(num[0]) System.out.println System.out System System.out num[0] num 0 String[] args args public class Main{
    public static void main(String[] args){
            Scanner sc = new Scanner(System.in);
            int n = sc.nextInt();
            int num[] = new int[n];
            for(int i = 0 ; i < n ; i++)
                num[i] = sc.nextInt();
            for(int i = n - 1 ; i > 0 ; i--)
                System.out.print(num[i] + " ");
            System.out.println(num[0]);
    }
} public class Main{
    public static void main(String[] args){
            Scanner sc = new Scanner(System.in);
            int n = sc.nextInt();
            int num[] = new int[n];
            for(int i = 0 ; i < n ; i++)
                num[i] = sc.nextInt();
            for(int i = n - 1 ; i > 0 ; i--)
                System.out.print(num[i] + " ");
            System.out.println(num[0]);
    }
} 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 num[] = new int[n];
            for(int i = 0 ; i < n ; i++)
                num[i] = sc.nextInt();
            for(int i = n - 1 ; i > 0 ; i--)
                System.out.print(num[i] + " ");
            System.out.println(num[0]);
    }
}
