import java.util.ArrayList;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        ArrayList<Integer> a = new ArrayList<Integer>();
        for (int i = 0; i < n; i++) {
            a.add(scanner.nextInt());
        }
        for (int i = a.size() - 1; i >= 0; i--) {
            System.out.print(a.get(i));
            if (i != 0) {
                System.out.print(" ");
            }
        }
        System.out.println("");
    }
}
 import java.util.ArrayList; ArrayList java.util import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        ArrayList<Integer> a = new ArrayList<Integer>();
        for (int i = 0; i < n; i++) {
            a.add(scanner.nextInt());
        }
        for (int i = a.size() - 1; i >= 0; i--) {
            System.out.print(a.get(i));
            if (i != 0) {
                System.out.print(" ");
            }
        }
        System.out.println("");
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        ArrayList<Integer> a = new ArrayList<Integer>();
        for (int i = 0; i < n; i++) {
            a.add(scanner.nextInt());
        }
        for (int i = a.size() - 1; i >= 0; i--) {
            System.out.print(a.get(i));
            if (i != 0) {
                System.out.print(" ");
            }
        }
        System.out.println("");
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        ArrayList<Integer> a = new ArrayList<Integer>();
        for (int i = 0; i < n; i++) {
            a.add(scanner.nextInt());
        }
        for (int i = a.size() - 1; i >= 0; i--) {
            System.out.print(a.get(i));
            if (i != 0) {
                System.out.print(" ");
            }
        }
        System.out.println("");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner ArrayList<Integer> a = new ArrayList<Integer>(); a new ArrayList<Integer>() for (int i = 0; i < n; i++) {
            a.add(scanner.nextInt());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            a.add(scanner.nextInt());
        } {
            a.add(scanner.nextInt());
        } a.add(scanner.nextInt()) a.add a scanner.nextInt() scanner.nextInt scanner for (int i = a.size() - 1; i >= 0; i--) {
            System.out.print(a.get(i));
            if (i != 0) {
                System.out.print(" ");
            }
        } int i = a.size() - 1; int i = a.size() - 1; i a.size() - 1 a.size() a.size a 1 i >= 0 i 0 i-- i-- i {
            System.out.print(a.get(i));
            if (i != 0) {
                System.out.print(" ");
            }
        } {
            System.out.print(a.get(i));
            if (i != 0) {
                System.out.print(" ");
            }
        } System.out.print(a.get(i)) System.out.print System.out System System.out a.get(i) a.get a i if (i != 0) {
                System.out.print(" ");
            } i != 0 i 0 {
                System.out.print(" ");
            } System.out.print(" ") System.out.print System.out System System.out " " System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        ArrayList<Integer> a = new ArrayList<Integer>();
        for (int i = 0; i < n; i++) {
            a.add(scanner.nextInt());
        }
        for (int i = a.size() - 1; i >= 0; i--) {
            System.out.print(a.get(i));
            if (i != 0) {
                System.out.print(" ");
            }
        }
        System.out.println("");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        ArrayList<Integer> a = new ArrayList<Integer>();
        for (int i = 0; i < n; i++) {
            a.add(scanner.nextInt());
        }
        for (int i = a.size() - 1; i >= 0; i--) {
            System.out.print(a.get(i));
            if (i != 0) {
                System.out.print(" ");
            }
        }
        System.out.println("");
    }
} Main
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        ArrayList<Integer> a = new ArrayList<Integer>();
        for (int i = 0; i < n; i++) {
            a.add(scanner.nextInt());
        }
        for (int i = a.size() - 1; i >= 0; i--) {
            System.out.print(a.get(i));
            if (i != 0) {
                System.out.print(" ");
            }
        }
        System.out.println("");
    }
}

