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