import java.util.Scanner;
public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] a=new int[n];
    for(int i=0;i<a.length;i++){
      a[i]=sc.nextInt();
    }
    for(int j=0;j<n;j++){
      if(j==n-1){
        System.out.printf("%d",a[n-1-j]);
      }else{
        System.out.printf("%d ",a[n-1-j]);
      }
    }
    System.out.println("");
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] a=new int[n];
    for(int i=0;i<a.length;i++){
      a[i]=sc.nextInt();
    }
    for(int j=0;j<n;j++){
      if(j==n-1){
        System.out.printf("%d",a[n-1-j]);
      }else{
        System.out.printf("%d ",a[n-1-j]);
      }
    }
    System.out.println("");
  }
} Main public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] a=new int[n];
    for(int i=0;i<a.length;i++){
      a[i]=sc.nextInt();
    }
    for(int j=0;j<n;j++){
      if(j==n-1){
        System.out.printf("%d",a[n-1-j]);
      }else{
        System.out.printf("%d ",a[n-1-j]);
      }
    }
    System.out.println("");
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] a=new int[n];
    for(int i=0;i<a.length;i++){
      a[i]=sc.nextInt();
    }
    for(int j=0;j<n;j++){
      if(j==n-1){
        System.out.printf("%d",a[n-1-j]);
      }else{
        System.out.printf("%d ",a[n-1-j]);
      }
    }
    System.out.println("");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] a=new int[n]; a new int[n] n for(int i=0;i<a.length;i++){
      a[i]=sc.nextInt();
    } int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {
      a[i]=sc.nextInt();
    } {
      a[i]=sc.nextInt();
    } a[i]=sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc for(int j=0;j<n;j++){
      if(j==n-1){
        System.out.printf("%d",a[n-1-j]);
      }else{
        System.out.printf("%d ",a[n-1-j]);
      }
    } int j=0; int j=0; j 0 j<n j n j++ j++ j {
      if(j==n-1){
        System.out.printf("%d",a[n-1-j]);
      }else{
        System.out.printf("%d ",a[n-1-j]);
      }
    } {
      if(j==n-1){
        System.out.printf("%d",a[n-1-j]);
      }else{
        System.out.printf("%d ",a[n-1-j]);
      }
    } if(j==n-1){
        System.out.printf("%d",a[n-1-j]);
      }else{
        System.out.printf("%d ",a[n-1-j]);
      } j==n-1 j n-1 n 1 {
        System.out.printf("%d",a[n-1-j]);
      } System.out.printf("%d",a[n-1-j]) System.out.printf System.out System System.out "%d" a[n-1-j] a n-1-j n-1-j n 1 j {
        System.out.printf("%d ",a[n-1-j]);
      } System.out.printf("%d ",a[n-1-j]) System.out.printf System.out System System.out "%d " a[n-1-j] a n-1-j n-1-j n 1 j System.out.println("") System.out.println System.out System System.out "" String[]args args public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] a=new int[n];
    for(int i=0;i<a.length;i++){
      a[i]=sc.nextInt();
    }
    for(int j=0;j<n;j++){
      if(j==n-1){
        System.out.printf("%d",a[n-1-j]);
      }else{
        System.out.printf("%d ",a[n-1-j]);
      }
    }
    System.out.println("");
  }
} public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] a=new int[n];
    for(int i=0;i<a.length;i++){
      a[i]=sc.nextInt();
    }
    for(int j=0;j<n;j++){
      if(j==n-1){
        System.out.printf("%d",a[n-1-j]);
      }else{
        System.out.printf("%d ",a[n-1-j]);
      }
    }
    System.out.println("");
  }
} Main
import java.util.Scanner;
public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] a=new int[n];
    for(int i=0;i<a.length;i++){
      a[i]=sc.nextInt();
    }
    for(int j=0;j<n;j++){
      if(j==n-1){
        System.out.printf("%d",a[n-1-j]);
      }else{
        System.out.printf("%d ",a[n-1-j]);
      }
    }
    System.out.println("");
  }
}
