import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int[] arr = new int[n];

    for (int i = 0; i < n; i++) {
      arr[i] = stdin.nextInt();
    }

    System.out.print(arr[n - 1]);
    for (int i = n - 2; i >= 0; i--) {
      System.out.printf(" %d", arr[i]);
    }
    System.out.println("");
  }

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

  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int[] arr = new int[n];

    for (int i = 0; i < n; i++) {
      arr[i] = stdin.nextInt();
    }

    System.out.print(arr[n - 1]);
    for (int i = n - 2; i >= 0; i--) {
      System.out.printf(" %d", arr[i]);
    }
    System.out.println("");
  }

} Main public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int[] arr = new int[n];

    for (int i = 0; i < n; i++) {
      arr[i] = stdin.nextInt();
    }

    System.out.print(arr[n - 1]);
    for (int i = n - 2; i >= 0; i--) {
      System.out.printf(" %d", arr[i]);
    }
    System.out.println("");
  } main {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int[] arr = new int[n];

    for (int i = 0; i < n; i++) {
      arr[i] = stdin.nextInt();
    }

    System.out.print(arr[n - 1]);
    for (int i = n - 2; i >= 0; i--) {
      System.out.printf(" %d", arr[i]);
    }
    System.out.println("");
  } Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) int n = stdin.nextInt(); n stdin.nextInt() stdin.nextInt stdin int[] arr = new int[n]; arr new int[n] n for (int i = 0; i < n; i++) {
      arr[i] = stdin.nextInt();
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      arr[i] = stdin.nextInt();
    } {
      arr[i] = stdin.nextInt();
    } arr[i] = stdin.nextInt() arr[i] arr i stdin.nextInt() stdin.nextInt stdin System.out.print(arr[n - 1]) System.out.print System.out System System.out arr[n - 1] arr n - 1 n 1 for (int i = n - 2; i >= 0; i--) {
      System.out.printf(" %d", arr[i]);
    } int i = n - 2; int i = n - 2; i n - 2 n 2 i >= 0 i 0 i-- i-- i {
      System.out.printf(" %d", arr[i]);
    } {
      System.out.printf(" %d", arr[i]);
    } System.out.printf(" %d", arr[i]) System.out.printf System.out System System.out " %d" arr[i] arr i System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main {

  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int[] arr = new int[n];

    for (int i = 0; i < n; i++) {
      arr[i] = stdin.nextInt();
    }

    System.out.print(arr[n - 1]);
    for (int i = n - 2; i >= 0; i--) {
      System.out.printf(" %d", arr[i]);
    }
    System.out.println("");
  }

} public class Main {

  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int[] arr = new int[n];

    for (int i = 0; i < n; i++) {
      arr[i] = stdin.nextInt();
    }

    System.out.print(arr[n - 1]);
    for (int i = n - 2; i >= 0; i--) {
      System.out.printf(" %d", arr[i]);
    }
    System.out.println("");
  }

} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int[] arr = new int[n];

    for (int i = 0; i < n; i++) {
      arr[i] = stdin.nextInt();
    }

    System.out.print(arr[n - 1]);
    for (int i = n - 2; i >= 0; i--) {
      System.out.printf(" %d", arr[i]);
    }
    System.out.println("");
  }

}