import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main{
    public static void main(String[]args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        String[] arr;
        int n=0;
         
        while((str=br.readLine())!=null){
            if(n==0){
                n=Integer.parseInt(str);
                continue;
            }
            arr=str.split(" ");
            int[] array=new int[n];
 
            for(int i=1;i<=n;i++){
            	array[n-i] = Integer.parseInt(arr[n-i]);
                System.out.print(array[n-i]);
                if(i!=n) System.out.print(" ");
            }
            break;
        }
        System.out.println("");
        br.close();
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{
    public static void main(String[]args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        String[] arr;
        int n=0;
         
        while((str=br.readLine())!=null){
            if(n==0){
                n=Integer.parseInt(str);
                continue;
            }
            arr=str.split(" ");
            int[] array=new int[n];
 
            for(int i=1;i<=n;i++){
            	array[n-i] = Integer.parseInt(arr[n-i]);
                System.out.print(array[n-i]);
                if(i!=n) System.out.print(" ");
            }
            break;
        }
        System.out.println("");
        br.close();
    }
} Main public static void main(String[]args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        String[] arr;
        int n=0;
         
        while((str=br.readLine())!=null){
            if(n==0){
                n=Integer.parseInt(str);
                continue;
            }
            arr=str.split(" ");
            int[] array=new int[n];
 
            for(int i=1;i<=n;i++){
            	array[n-i] = Integer.parseInt(arr[n-i]);
                System.out.print(array[n-i]);
                if(i!=n) System.out.print(" ");
            }
            break;
        }
        System.out.println("");
        br.close();
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        String[] arr;
        int n=0;
         
        while((str=br.readLine())!=null){
            if(n==0){
                n=Integer.parseInt(str);
                continue;
            }
            arr=str.split(" ");
            int[] array=new int[n];
 
            for(int i=1;i<=n;i++){
            	array[n-i] = Integer.parseInt(arr[n-i]);
                System.out.print(array[n-i]);
                if(i!=n) System.out.print(" ");
            }
            break;
        }
        System.out.println("");
        br.close();
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str; str String[] arr; arr int n=0; n 0 while((str=br.readLine())!=null){
            if(n==0){
                n=Integer.parseInt(str);
                continue;
            }
            arr=str.split(" ");
            int[] array=new int[n];
 
            for(int i=1;i<=n;i++){
            	array[n-i] = Integer.parseInt(arr[n-i]);
                System.out.print(array[n-i]);
                if(i!=n) System.out.print(" ");
            }
            break;
        } (str=br.readLine())!=null (str=br.readLine()) str br.readLine() br.readLine br null {
            if(n==0){
                n=Integer.parseInt(str);
                continue;
            }
            arr=str.split(" ");
            int[] array=new int[n];
 
            for(int i=1;i<=n;i++){
            	array[n-i] = Integer.parseInt(arr[n-i]);
                System.out.print(array[n-i]);
                if(i!=n) System.out.print(" ");
            }
            break;
        } if(n==0){
                n=Integer.parseInt(str);
                continue;
            } n==0 n 0 {
                n=Integer.parseInt(str);
                continue;
            } n=Integer.parseInt(str) n Integer.parseInt(str) Integer.parseInt Integer str continue; arr=str.split(" ") arr str.split(" ") str.split str " " int[] array=new int[n]; array new int[n] n for(int i=1;i<=n;i++){
            	array[n-i] = Integer.parseInt(arr[n-i]);
                System.out.print(array[n-i]);
                if(i!=n) System.out.print(" ");
            } int i=1; int i=1; i 1 i<=n i n i++ i++ i {
            	array[n-i] = Integer.parseInt(arr[n-i]);
                System.out.print(array[n-i]);
                if(i!=n) System.out.print(" ");
            } {
            	array[n-i] = Integer.parseInt(arr[n-i]);
                System.out.print(array[n-i]);
                if(i!=n) System.out.print(" ");
            } array[n-i] = Integer.parseInt(arr[n-i]) array[n-i] array n-i n i Integer.parseInt(arr[n-i]) Integer.parseInt Integer arr[n-i] arr n-i n i System.out.print(array[n-i]) System.out.print System.out System System.out array[n-i] array n-i n i if(i!=n) System.out.print(" "); i!=n i n System.out.print(" ") System.out.print System.out System System.out " " break; System.out.println("") System.out.println System.out System System.out "" br.close() br.close br String[]args args public class Main{
    public static void main(String[]args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        String[] arr;
        int n=0;
         
        while((str=br.readLine())!=null){
            if(n==0){
                n=Integer.parseInt(str);
                continue;
            }
            arr=str.split(" ");
            int[] array=new int[n];
 
            for(int i=1;i<=n;i++){
            	array[n-i] = Integer.parseInt(arr[n-i]);
                System.out.print(array[n-i]);
                if(i!=n) System.out.print(" ");
            }
            break;
        }
        System.out.println("");
        br.close();
    }
} public class Main{
    public static void main(String[]args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        String[] arr;
        int n=0;
         
        while((str=br.readLine())!=null){
            if(n==0){
                n=Integer.parseInt(str);
                continue;
            }
            arr=str.split(" ");
            int[] array=new int[n];
 
            for(int i=1;i<=n;i++){
            	array[n-i] = Integer.parseInt(arr[n-i]);
                System.out.print(array[n-i]);
                if(i!=n) System.out.print(" ");
            }
            break;
        }
        System.out.println("");
        br.close();
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main{
    public static void main(String[]args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        String[] arr;
        int n=0;
         
        while((str=br.readLine())!=null){
            if(n==0){
                n=Integer.parseInt(str);
                continue;
            }
            arr=str.split(" ");
            int[] array=new int[n];
 
            for(int i=1;i<=n;i++){
            	array[n-i] = Integer.parseInt(arr[n-i]);
                System.out.print(array[n-i]);
                if(i!=n) System.out.print(" ");
            }
            break;
        }
        System.out.println("");
        br.close();
    }
}