import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String line2 = br.readLine();
        String[] ary = line2.split(" ");
        List<Integer> list = new ArrayList<Integer>();
        for(int i=0;i<ary.length;i++) {
          list.add(new Integer(ary[i]));
        }
        Collections.reverse(list);
        for(int i=0;i<list.size();i++) {
           System.out.print(list.get(i));
           if(i==list.size()-1) {
             System.out.println();
           }else {
             System.out.print(" ");
           }
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String line2 = br.readLine();
        String[] ary = line2.split(" ");
        List<Integer> list = new ArrayList<Integer>();
        for(int i=0;i<ary.length;i++) {
          list.add(new Integer(ary[i]));
        }
        Collections.reverse(list);
        for(int i=0;i<list.size();i++) {
           System.out.print(list.get(i));
           if(i==list.size()-1) {
             System.out.println();
           }else {
             System.out.print(" ");
           }
        }
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String line2 = br.readLine();
        String[] ary = line2.split(" ");
        List<Integer> list = new ArrayList<Integer>();
        for(int i=0;i<ary.length;i++) {
          list.add(new Integer(ary[i]));
        }
        Collections.reverse(list);
        for(int i=0;i<list.size();i++) {
           System.out.print(list.get(i));
           if(i==list.size()-1) {
             System.out.println();
           }else {
             System.out.print(" ");
           }
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String line2 = br.readLine();
        String[] ary = line2.split(" ");
        List<Integer> list = new ArrayList<Integer>();
        for(int i=0;i<ary.length;i++) {
          list.add(new Integer(ary[i]));
        }
        Collections.reverse(list);
        for(int i=0;i<list.size();i++) {
           System.out.print(list.get(i));
           if(i==list.size()-1) {
             System.out.println();
           }else {
             System.out.print(" ");
           }
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br String line2 = br.readLine(); line2 br.readLine() br.readLine br String[] ary = line2.split(" "); ary line2.split(" ") line2.split line2 " " List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for(int i=0;i<ary.length;i++) {
          list.add(new Integer(ary[i]));
        } int i=0; int i=0; i 0 i<ary.length i ary.length ary ary.length i++ i++ i {
          list.add(new Integer(ary[i]));
        } {
          list.add(new Integer(ary[i]));
        } list.add(new Integer(ary[i])) list.add list new Integer(ary[i]) Collections.reverse(list) Collections.reverse Collections list for(int i=0;i<list.size();i++) {
           System.out.print(list.get(i));
           if(i==list.size()-1) {
             System.out.println();
           }else {
             System.out.print(" ");
           }
        } int i=0; int i=0; i 0 i<list.size() i list.size() list.size list i++ i++ i {
           System.out.print(list.get(i));
           if(i==list.size()-1) {
             System.out.println();
           }else {
             System.out.print(" ");
           }
        } {
           System.out.print(list.get(i));
           if(i==list.size()-1) {
             System.out.println();
           }else {
             System.out.print(" ");
           }
        } System.out.print(list.get(i)) System.out.print System.out System System.out list.get(i) list.get list i if(i==list.size()-1) {
             System.out.println();
           }else {
             System.out.print(" ");
           } i==list.size()-1 i list.size()-1 list.size() list.size list 1 {
             System.out.println();
           } System.out.println() System.out.println System.out System System.out {
             System.out.print(" ");
           } System.out.print(" ") System.out.print System.out System System.out " " String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String line2 = br.readLine();
        String[] ary = line2.split(" ");
        List<Integer> list = new ArrayList<Integer>();
        for(int i=0;i<ary.length;i++) {
          list.add(new Integer(ary[i]));
        }
        Collections.reverse(list);
        for(int i=0;i<list.size();i++) {
           System.out.print(list.get(i));
           if(i==list.size()-1) {
             System.out.println();
           }else {
             System.out.print(" ");
           }
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String line2 = br.readLine();
        String[] ary = line2.split(" ");
        List<Integer> list = new ArrayList<Integer>();
        for(int i=0;i<ary.length;i++) {
          list.add(new Integer(ary[i]));
        }
        Collections.reverse(list);
        for(int i=0;i<list.size();i++) {
           System.out.print(list.get(i));
           if(i==list.size()-1) {
             System.out.println();
           }else {
             System.out.print(" ");
           }
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String line2 = br.readLine();
        String[] ary = line2.split(" ");
        List<Integer> list = new ArrayList<Integer>();
        for(int i=0;i<ary.length;i++) {
          list.add(new Integer(ary[i]));
        }
        Collections.reverse(list);
        for(int i=0;i<list.size();i++) {
           System.out.print(list.get(i));
           if(i==list.size()-1) {
             System.out.println();
           }else {
             System.out.print(" ");
           }
        }
    }
}