import java.util.Scanner;
 
class Main{
  public static void main(String[] arg){
    int n;

    Scanner in = new Scanner(System.in);

    n = in.nextInt();

    in.nextLine();

    int [] input = new int[n];

    for(int i=0; i<n; i++){
        input[i] = in.nextInt();
    }
    for(int i=n-1; i>0; i--){
        System.out.print(input[i] + " ");
    }
    System.out.println(input[0]);
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] arg){
    int n;

    Scanner in = new Scanner(System.in);

    n = in.nextInt();

    in.nextLine();

    int [] input = new int[n];

    for(int i=0; i<n; i++){
        input[i] = in.nextInt();
    }
    for(int i=n-1; i>0; i--){
        System.out.print(input[i] + " ");
    }
    System.out.println(input[0]);
  }
} Main public static void main(String[] arg){
    int n;

    Scanner in = new Scanner(System.in);

    n = in.nextInt();

    in.nextLine();

    int [] input = new int[n];

    for(int i=0; i<n; i++){
        input[i] = in.nextInt();
    }
    for(int i=n-1; i>0; i--){
        System.out.print(input[i] + " ");
    }
    System.out.println(input[0]);
  } main {
    int n;

    Scanner in = new Scanner(System.in);

    n = in.nextInt();

    in.nextLine();

    int [] input = new int[n];

    for(int i=0; i<n; i++){
        input[i] = in.nextInt();
    }
    for(int i=n-1; i>0; i--){
        System.out.print(input[i] + " ");
    }
    System.out.println(input[0]);
  } int n; n Scanner in = new Scanner(System.in); in new Scanner(System.in) n = in.nextInt() n in.nextInt() in.nextInt in in.nextLine() in.nextLine in int [] input = new int[n]; input new int[n] n for(int i=0; i<n; i++){
        input[i] = in.nextInt();
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        input[i] = in.nextInt();
    } {
        input[i] = in.nextInt();
    } input[i] = in.nextInt() input[i] input i in.nextInt() in.nextInt in for(int i=n-1; i>0; i--){
        System.out.print(input[i] + " ");
    } int i=n-1; int i=n-1; i n-1 n 1 i>0 i 0 i-- i-- i {
        System.out.print(input[i] + " ");
    } {
        System.out.print(input[i] + " ");
    } System.out.print(input[i] + " ") System.out.print System.out System System.out input[i] + " " input[i] input i " " System.out.println(input[0]) System.out.println System.out System System.out input[0] input 0 String[] arg arg
import java.util.Scanner;
 
class Main{
  public static void main(String[] arg){
    int n;

    Scanner in = new Scanner(System.in);

    n = in.nextInt();

    in.nextLine();

    int [] input = new int[n];

    for(int i=0; i<n; i++){
        input[i] = in.nextInt();
    }
    for(int i=n-1; i>0; i--){
        System.out.print(input[i] + " ");
    }
    System.out.println(input[0]);
  }
}