import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = Integer.parseInt(sc.next());

        List<Integer> a = new ArrayList<>();
        for (int i = 0; i < N; i++) {
            a.add(Integer.parseInt(sc.next()));
        }

        for (int i = a.size() - 1; i >= 0; i--) {
            if (i == 0) {
                System.out.printf("%d\n", a.get(i));
            } else {
                System.out.printf("%d ", a.get(i));
            }
        }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = Integer.parseInt(sc.next());

        List<Integer> a = new ArrayList<>();
        for (int i = 0; i < N; i++) {
            a.add(Integer.parseInt(sc.next()));
        }

        for (int i = a.size() - 1; i >= 0; i--) {
            if (i == 0) {
                System.out.printf("%d\n", a.get(i));
            } else {
                System.out.printf("%d ", a.get(i));
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = Integer.parseInt(sc.next());

        List<Integer> a = new ArrayList<>();
        for (int i = 0; i < N; i++) {
            a.add(Integer.parseInt(sc.next()));
        }

        for (int i = a.size() - 1; i >= 0; i--) {
            if (i == 0) {
                System.out.printf("%d\n", a.get(i));
            } else {
                System.out.printf("%d ", a.get(i));
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);

        int N = Integer.parseInt(sc.next());

        List<Integer> a = new ArrayList<>();
        for (int i = 0; i < N; i++) {
            a.add(Integer.parseInt(sc.next()));
        }

        for (int i = a.size() - 1; i >= 0; i--) {
            if (i == 0) {
                System.out.printf("%d\n", a.get(i));
            } else {
                System.out.printf("%d ", a.get(i));
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc List<Integer> a = new ArrayList<>(); a new ArrayList<>() for (int i = 0; i < N; i++) {
            a.add(Integer.parseInt(sc.next()));
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            a.add(Integer.parseInt(sc.next()));
        } {
            a.add(Integer.parseInt(sc.next()));
        } a.add(Integer.parseInt(sc.next())) a.add a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc for (int i = a.size() - 1; i >= 0; i--) {
            if (i == 0) {
                System.out.printf("%d\n", a.get(i));
            } else {
                System.out.printf("%d ", a.get(i));
            }
        } 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 {
            if (i == 0) {
                System.out.printf("%d\n", a.get(i));
            } else {
                System.out.printf("%d ", a.get(i));
            }
        } {
            if (i == 0) {
                System.out.printf("%d\n", a.get(i));
            } else {
                System.out.printf("%d ", a.get(i));
            }
        } if (i == 0) {
                System.out.printf("%d\n", a.get(i));
            } else {
                System.out.printf("%d ", a.get(i));
            } i == 0 i 0 {
                System.out.printf("%d\n", a.get(i));
            } System.out.printf("%d\n", a.get(i)) System.out.printf System.out System System.out "%d\n" a.get(i) a.get a i {
                System.out.printf("%d ", a.get(i));
            } System.out.printf("%d ", a.get(i)) System.out.printf System.out System System.out "%d " a.get(i) a.get a i String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = Integer.parseInt(sc.next());

        List<Integer> a = new ArrayList<>();
        for (int i = 0; i < N; i++) {
            a.add(Integer.parseInt(sc.next()));
        }

        for (int i = a.size() - 1; i >= 0; i--) {
            if (i == 0) {
                System.out.printf("%d\n", a.get(i));
            } else {
                System.out.printf("%d ", a.get(i));
            }
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = Integer.parseInt(sc.next());

        List<Integer> a = new ArrayList<>();
        for (int i = 0; i < N; i++) {
            a.add(Integer.parseInt(sc.next()));
        }

        for (int i = a.size() - 1; i >= 0; i--) {
            if (i == 0) {
                System.out.printf("%d\n", a.get(i));
            } else {
                System.out.printf("%d ", a.get(i));
            }
        }
    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = Integer.parseInt(sc.next());

        List<Integer> a = new ArrayList<>();
        for (int i = 0; i < N; i++) {
            a.add(Integer.parseInt(sc.next()));
        }

        for (int i = a.size() - 1; i >= 0; i--) {
            if (i == 0) {
                System.out.printf("%d\n", a.get(i));
            } else {
                System.out.printf("%d ", a.get(i));
            }
        }
    }
}