import java.util.Scanner;                                                                     
class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        StringBuilder sb = new StringBuilder();
        String b = in.nextLine();
        int n = Integer.parseInt(b);
        String a = in.nextLine();
        String[] strAry = a.split(" ");

          while(n > 0){
              n--;
              //System.out.print(strAry[n]);
              sb.append(strAry[n] + " ");
          }
          String str = new String(sb);
          String str_new = str.trim();
          System.out.print(str_new + "\n");
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        StringBuilder sb = new StringBuilder();
        String b = in.nextLine();
        int n = Integer.parseInt(b);
        String a = in.nextLine();
        String[] strAry = a.split(" ");

          while(n > 0){
              n--;
              //System.out.print(strAry[n]);
              sb.append(strAry[n] + " ");
          }
          String str = new String(sb);
          String str_new = str.trim();
          System.out.print(str_new + "\n");
    }
} Main public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        StringBuilder sb = new StringBuilder();
        String b = in.nextLine();
        int n = Integer.parseInt(b);
        String a = in.nextLine();
        String[] strAry = a.split(" ");

          while(n > 0){
              n--;
              //System.out.print(strAry[n]);
              sb.append(strAry[n] + " ");
          }
          String str = new String(sb);
          String str_new = str.trim();
          System.out.print(str_new + "\n");
    } main {
        Scanner in = new Scanner(System.in);
        StringBuilder sb = new StringBuilder();
        String b = in.nextLine();
        int n = Integer.parseInt(b);
        String a = in.nextLine();
        String[] strAry = a.split(" ");

          while(n > 0){
              n--;
              //System.out.print(strAry[n]);
              sb.append(strAry[n] + " ");
          }
          String str = new String(sb);
          String str_new = str.trim();
          System.out.print(str_new + "\n");
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) StringBuilder sb = new StringBuilder(); sb new StringBuilder() String b = in.nextLine(); b in.nextLine() in.nextLine in int n = Integer.parseInt(b); n Integer.parseInt(b) Integer.parseInt Integer b String a = in.nextLine(); a in.nextLine() in.nextLine in String[] strAry = a.split(" "); strAry a.split(" ") a.split a " " while(n > 0){
              n--;
              //System.out.print(strAry[n]);
              sb.append(strAry[n] + " ");
          } n > 0 n 0 {
              n--;
              //System.out.print(strAry[n]);
              sb.append(strAry[n] + " ");
          } n-- n sb.append(strAry[n] + " ") sb.append sb strAry[n] + " " strAry[n] strAry n " " String str = new String(sb); str new String(sb) String str_new = str.trim(); str_new str.trim() str.trim str System.out.print(str_new + "\n") System.out.print System.out System System.out str_new + "\n" str_new "\n" String[] args args
import java.util.Scanner;                                                                     
class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        StringBuilder sb = new StringBuilder();
        String b = in.nextLine();
        int n = Integer.parseInt(b);
        String a = in.nextLine();
        String[] strAry = a.split(" ");

          while(n > 0){
              n--;
              //System.out.print(strAry[n]);
              sb.append(strAry[n] + " ");
          }
          String str = new String(sb);
          String str_new = str.trim();
          System.out.print(str_new + "\n");
    }
}