import java.io.*;
import java.util.*;

public class Main{
    public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        
        int n = Integer.parseInt(str);
        
        str = br.readLine();
        String[] temp = str.split("\\s");
        int[] Suretu = new int[n];
        
        for(int i=0;i<n;i++){
            Suretu[i]=Integer.parseInt(temp[i]);
        }
        
        //Arrays.sort(Suretu);
        
        StringBuilder output = new StringBuilder();
        for(int i= n-1;i>=0;i--){
            if(i != 0){
            output.append(Suretu[i]);
            output.append(" ");
            }else{
            output.append(Suretu[i]);
            }
        }
        System.out.println(output.toString());
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
    public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        
        int n = Integer.parseInt(str);
        
        str = br.readLine();
        String[] temp = str.split("\\s");
        int[] Suretu = new int[n];
        
        for(int i=0;i<n;i++){
            Suretu[i]=Integer.parseInt(temp[i]);
        }
        
        //Arrays.sort(Suretu);
        
        StringBuilder output = new StringBuilder();
        for(int i= n-1;i>=0;i--){
            if(i != 0){
            output.append(Suretu[i]);
            output.append(" ");
            }else{
            output.append(Suretu[i]);
            }
        }
        System.out.println(output.toString());
    }
} Main public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        
        int n = Integer.parseInt(str);
        
        str = br.readLine();
        String[] temp = str.split("\\s");
        int[] Suretu = new int[n];
        
        for(int i=0;i<n;i++){
            Suretu[i]=Integer.parseInt(temp[i]);
        }
        
        //Arrays.sort(Suretu);
        
        StringBuilder output = new StringBuilder();
        for(int i= n-1;i>=0;i--){
            if(i != 0){
            output.append(Suretu[i]);
            output.append(" ");
            }else{
            output.append(Suretu[i]);
            }
        }
        System.out.println(output.toString());
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        
        int n = Integer.parseInt(str);
        
        str = br.readLine();
        String[] temp = str.split("\\s");
        int[] Suretu = new int[n];
        
        for(int i=0;i<n;i++){
            Suretu[i]=Integer.parseInt(temp[i]);
        }
        
        //Arrays.sort(Suretu);
        
        StringBuilder output = new StringBuilder();
        for(int i= n-1;i>=0;i--){
            if(i != 0){
            output.append(Suretu[i]);
            output.append(" ");
            }else{
            output.append(Suretu[i]);
            }
        }
        System.out.println(output.toString());
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br int n = Integer.parseInt(str); n Integer.parseInt(str) Integer.parseInt Integer str str = br.readLine() str br.readLine() br.readLine br String[] temp = str.split("\\s"); temp str.split("\\s") str.split str "\\s" int[] Suretu = new int[n]; Suretu new int[n] n for(int i=0;i<n;i++){
            Suretu[i]=Integer.parseInt(temp[i]);
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            Suretu[i]=Integer.parseInt(temp[i]);
        } {
            Suretu[i]=Integer.parseInt(temp[i]);
        } Suretu[i]=Integer.parseInt(temp[i]) Suretu[i] Suretu i Integer.parseInt(temp[i]) Integer.parseInt Integer temp[i] temp i StringBuilder output = new StringBuilder(); output new StringBuilder() for(int i= n-1;i>=0;i--){
            if(i != 0){
            output.append(Suretu[i]);
            output.append(" ");
            }else{
            output.append(Suretu[i]);
            }
        } int i= n-1; int i= n-1; i n-1 n 1 i>=0 i 0 i-- i-- i {
            if(i != 0){
            output.append(Suretu[i]);
            output.append(" ");
            }else{
            output.append(Suretu[i]);
            }
        } {
            if(i != 0){
            output.append(Suretu[i]);
            output.append(" ");
            }else{
            output.append(Suretu[i]);
            }
        } if(i != 0){
            output.append(Suretu[i]);
            output.append(" ");
            }else{
            output.append(Suretu[i]);
            } i != 0 i 0 {
            output.append(Suretu[i]);
            output.append(" ");
            } output.append(Suretu[i]) output.append output Suretu[i] Suretu i output.append(" ") output.append output " " {
            output.append(Suretu[i]);
            } output.append(Suretu[i]) output.append output Suretu[i] Suretu i System.out.println(output.toString()) System.out.println System.out System System.out output.toString() output.toString output String[] args args public class Main{
    public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        
        int n = Integer.parseInt(str);
        
        str = br.readLine();
        String[] temp = str.split("\\s");
        int[] Suretu = new int[n];
        
        for(int i=0;i<n;i++){
            Suretu[i]=Integer.parseInt(temp[i]);
        }
        
        //Arrays.sort(Suretu);
        
        StringBuilder output = new StringBuilder();
        for(int i= n-1;i>=0;i--){
            if(i != 0){
            output.append(Suretu[i]);
            output.append(" ");
            }else{
            output.append(Suretu[i]);
            }
        }
        System.out.println(output.toString());
    }
} public class Main{
    public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        
        int n = Integer.parseInt(str);
        
        str = br.readLine();
        String[] temp = str.split("\\s");
        int[] Suretu = new int[n];
        
        for(int i=0;i<n;i++){
            Suretu[i]=Integer.parseInt(temp[i]);
        }
        
        //Arrays.sort(Suretu);
        
        StringBuilder output = new StringBuilder();
        for(int i= n-1;i>=0;i--){
            if(i != 0){
            output.append(Suretu[i]);
            output.append(" ");
            }else{
            output.append(Suretu[i]);
            }
        }
        System.out.println(output.toString());
    }
} Main
import java.io.*;
import java.util.*;

public class Main{
    public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        
        int n = Integer.parseInt(str);
        
        str = br.readLine();
        String[] temp = str.split("\\s");
        int[] Suretu = new int[n];
        
        for(int i=0;i<n;i++){
            Suretu[i]=Integer.parseInt(temp[i]);
        }
        
        //Arrays.sort(Suretu);
        
        StringBuilder output = new StringBuilder();
        for(int i= n-1;i>=0;i--){
            if(i != 0){
            output.append(Suretu[i]);
            output.append(" ");
            }else{
            output.append(Suretu[i]);
            }
        }
        System.out.println(output.toString());
    }
}