import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scn = new Scanner(System.in);
        List<Integer> lis = new ArrayList<Integer>();
        int n = scn.nextInt();
        for(int i = 0; i < n; i++) {
            lis.add(scn.nextInt());
        }
        Collections.reverse(lis);
        for(int i = 0; i < n; i++) {
            System.out.print(lis.get(i));
            if(i == ~-n) {
                System.out.println();
            } else {
                System.out.print(" ");
            }
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner scn = new Scanner(System.in);
        List<Integer> lis = new ArrayList<Integer>();
        int n = scn.nextInt();
        for(int i = 0; i < n; i++) {
            lis.add(scn.nextInt());
        }
        Collections.reverse(lis);
        for(int i = 0; i < n; i++) {
            System.out.print(lis.get(i));
            if(i == ~-n) {
                System.out.println();
            } else {
                System.out.print(" ");
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner scn = new Scanner(System.in);
        List<Integer> lis = new ArrayList<Integer>();
        int n = scn.nextInt();
        for(int i = 0; i < n; i++) {
            lis.add(scn.nextInt());
        }
        Collections.reverse(lis);
        for(int i = 0; i < n; i++) {
            System.out.print(lis.get(i));
            if(i == ~-n) {
                System.out.println();
            } else {
                System.out.print(" ");
            }
        }
    } main {
        Scanner scn = new Scanner(System.in);
        List<Integer> lis = new ArrayList<Integer>();
        int n = scn.nextInt();
        for(int i = 0; i < n; i++) {
            lis.add(scn.nextInt());
        }
        Collections.reverse(lis);
        for(int i = 0; i < n; i++) {
            System.out.print(lis.get(i));
            if(i == ~-n) {
                System.out.println();
            } else {
                System.out.print(" ");
            }
        }
    } Scanner scn = new Scanner(System.in); scn new Scanner(System.in) List<Integer> lis = new ArrayList<Integer>(); lis new ArrayList<Integer>() int n = scn.nextInt(); n scn.nextInt() scn.nextInt scn for(int i = 0; i < n; i++) {
            lis.add(scn.nextInt());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            lis.add(scn.nextInt());
        } {
            lis.add(scn.nextInt());
        } lis.add(scn.nextInt()) lis.add lis scn.nextInt() scn.nextInt scn Collections.reverse(lis) Collections.reverse Collections lis for(int i = 0; i < n; i++) {
            System.out.print(lis.get(i));
            if(i == ~-n) {
                System.out.println();
            } else {
                System.out.print(" ");
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            System.out.print(lis.get(i));
            if(i == ~-n) {
                System.out.println();
            } else {
                System.out.print(" ");
            }
        } {
            System.out.print(lis.get(i));
            if(i == ~-n) {
                System.out.println();
            } else {
                System.out.print(" ");
            }
        } System.out.print(lis.get(i)) System.out.print System.out System System.out lis.get(i) lis.get lis i if(i == ~-n) {
                System.out.println();
            } else {
                System.out.print(" ");
            } i == ~-n i ~-n -n n {
                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) {
        Scanner scn = new Scanner(System.in);
        List<Integer> lis = new ArrayList<Integer>();
        int n = scn.nextInt();
        for(int i = 0; i < n; i++) {
            lis.add(scn.nextInt());
        }
        Collections.reverse(lis);
        for(int i = 0; i < n; i++) {
            System.out.print(lis.get(i));
            if(i == ~-n) {
                System.out.println();
            } else {
                System.out.print(" ");
            }
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scn = new Scanner(System.in);
        List<Integer> lis = new ArrayList<Integer>();
        int n = scn.nextInt();
        for(int i = 0; i < n; i++) {
            lis.add(scn.nextInt());
        }
        Collections.reverse(lis);
        for(int i = 0; i < n; i++) {
            System.out.print(lis.get(i));
            if(i == ~-n) {
                System.out.println();
            } else {
                System.out.print(" ");
            }
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scn = new Scanner(System.in);
        List<Integer> lis = new ArrayList<Integer>();
        int n = scn.nextInt();
        for(int i = 0; i < n; i++) {
            lis.add(scn.nextInt());
        }
        Collections.reverse(lis);
        for(int i = 0; i < n; i++) {
            System.out.print(lis.get(i));
            if(i == ~-n) {
                System.out.println();
            } else {
                System.out.print(" ");
            }
        }
    }
}