import java.util.Scanner;
import java.util.StringJoiner;

class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    String[] ary = new String[n];

    for (int i = 0; i < n; i++ ) {
      ary[i] = String.valueOf(sc.nextInt());
    }

    sc.close();

    StringJoiner sj = new StringJoiner(" ");

    for(int i = 0; i<n; i++) {
      sj.add(ary[n-1-i]);
    }

    System.out.println(sj.toString());

  }
} import java.util.Scanner; Scanner java.util import java.util.StringJoiner; StringJoiner java.util class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    String[] ary = new String[n];

    for (int i = 0; i < n; i++ ) {
      ary[i] = String.valueOf(sc.nextInt());
    }

    sc.close();

    StringJoiner sj = new StringJoiner(" ");

    for(int i = 0; i<n; i++) {
      sj.add(ary[n-1-i]);
    }

    System.out.println(sj.toString());

  }
} Main public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    String[] ary = new String[n];

    for (int i = 0; i < n; i++ ) {
      ary[i] = String.valueOf(sc.nextInt());
    }

    sc.close();

    StringJoiner sj = new StringJoiner(" ");

    for(int i = 0; i<n; i++) {
      sj.add(ary[n-1-i]);
    }

    System.out.println(sj.toString());

  } main {

    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    String[] ary = new String[n];

    for (int i = 0; i < n; i++ ) {
      ary[i] = String.valueOf(sc.nextInt());
    }

    sc.close();

    StringJoiner sj = new StringJoiner(" ");

    for(int i = 0; i<n; i++) {
      sj.add(ary[n-1-i]);
    }

    System.out.println(sj.toString());

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String[] ary = new String[n]; ary new String[n] n for (int i = 0; i < n; i++ ) {
      ary[i] = String.valueOf(sc.nextInt());
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      ary[i] = String.valueOf(sc.nextInt());
    } {
      ary[i] = String.valueOf(sc.nextInt());
    } ary[i] = String.valueOf(sc.nextInt()) ary[i] ary i String.valueOf(sc.nextInt()) String.valueOf String sc.nextInt() sc.nextInt sc sc.close() sc.close sc StringJoiner sj = new StringJoiner(" "); sj new StringJoiner(" ") for(int i = 0; i<n; i++) {
      sj.add(ary[n-1-i]);
    } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
      sj.add(ary[n-1-i]);
    } {
      sj.add(ary[n-1-i]);
    } sj.add(ary[n-1-i]) sj.add sj ary[n-1-i] ary n-1-i n-1-i n 1 i System.out.println(sj.toString()) System.out.println System.out System System.out sj.toString() sj.toString sj String[] args args
import java.util.Scanner;
import java.util.StringJoiner;

class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    String[] ary = new String[n];

    for (int i = 0; i < n; i++ ) {
      ary[i] = String.valueOf(sc.nextInt());
    }

    sc.close();

    StringJoiner sj = new StringJoiner(" ");

    for(int i = 0; i<n; i++) {
      sj.add(ary[n-1-i]);
    }

    System.out.println(sj.toString());

  }
}