import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

public class Main{

    static StringBuilder sb;

    public static void main(String[] args) {
	try {
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    List<String> lines = new ArrayList<String>();

	    for (String line = br.readLine(); line != null; line = br.readLine()) {
		lines.add(line);
	    }
	    //lines.add("5");
	    //lines.add("1 2 5 4 5");
	    br.close();

	    //List<String> array = new ArrayList<String>();
	    String[] array = new String[Integer.parseInt(lines.get(0))];
	    String[] reverse = new String[Integer.parseInt(lines.get(0))];
	    for (int i = 0; i < array.length ; i++) {
		array[i] = lines.get(1).split(" ")[i];
	    }
	    sb = new StringBuilder();

	    for (int i = array.length - 1; i >= 0 ; i--) {
		if ( i != 0 ) {
		    sb.append(array[i] + " ");
		} else {
		    sb.append(array[i]);
		}
	    }

	    System.out.println(sb.toString());
	    System.exit(0);

	} catch (Exception e) {
	    System.out.println(e.getMessage());
	    System.out.println(Arrays.toString(e.getStackTrace()));
	    System.exit(0);
	}
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Comparator; Comparator java.util public class Main{

    static StringBuilder sb;

    public static void main(String[] args) {
	try {
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    List<String> lines = new ArrayList<String>();

	    for (String line = br.readLine(); line != null; line = br.readLine()) {
		lines.add(line);
	    }
	    //lines.add("5");
	    //lines.add("1 2 5 4 5");
	    br.close();

	    //List<String> array = new ArrayList<String>();
	    String[] array = new String[Integer.parseInt(lines.get(0))];
	    String[] reverse = new String[Integer.parseInt(lines.get(0))];
	    for (int i = 0; i < array.length ; i++) {
		array[i] = lines.get(1).split(" ")[i];
	    }
	    sb = new StringBuilder();

	    for (int i = array.length - 1; i >= 0 ; i--) {
		if ( i != 0 ) {
		    sb.append(array[i] + " ");
		} else {
		    sb.append(array[i]);
		}
	    }

	    System.out.println(sb.toString());
	    System.exit(0);

	} catch (Exception e) {
	    System.out.println(e.getMessage());
	    System.out.println(Arrays.toString(e.getStackTrace()));
	    System.exit(0);
	}
    }
} Main static StringBuilder sb; sb public static void main(String[] args) {
	try {
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    List<String> lines = new ArrayList<String>();

	    for (String line = br.readLine(); line != null; line = br.readLine()) {
		lines.add(line);
	    }
	    //lines.add("5");
	    //lines.add("1 2 5 4 5");
	    br.close();

	    //List<String> array = new ArrayList<String>();
	    String[] array = new String[Integer.parseInt(lines.get(0))];
	    String[] reverse = new String[Integer.parseInt(lines.get(0))];
	    for (int i = 0; i < array.length ; i++) {
		array[i] = lines.get(1).split(" ")[i];
	    }
	    sb = new StringBuilder();

	    for (int i = array.length - 1; i >= 0 ; i--) {
		if ( i != 0 ) {
		    sb.append(array[i] + " ");
		} else {
		    sb.append(array[i]);
		}
	    }

	    System.out.println(sb.toString());
	    System.exit(0);

	} catch (Exception e) {
	    System.out.println(e.getMessage());
	    System.out.println(Arrays.toString(e.getStackTrace()));
	    System.exit(0);
	}
    } main {
	try {
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    List<String> lines = new ArrayList<String>();

	    for (String line = br.readLine(); line != null; line = br.readLine()) {
		lines.add(line);
	    }
	    //lines.add("5");
	    //lines.add("1 2 5 4 5");
	    br.close();

	    //List<String> array = new ArrayList<String>();
	    String[] array = new String[Integer.parseInt(lines.get(0))];
	    String[] reverse = new String[Integer.parseInt(lines.get(0))];
	    for (int i = 0; i < array.length ; i++) {
		array[i] = lines.get(1).split(" ")[i];
	    }
	    sb = new StringBuilder();

	    for (int i = array.length - 1; i >= 0 ; i--) {
		if ( i != 0 ) {
		    sb.append(array[i] + " ");
		} else {
		    sb.append(array[i]);
		}
	    }

	    System.out.println(sb.toString());
	    System.exit(0);

	} catch (Exception e) {
	    System.out.println(e.getMessage());
	    System.out.println(Arrays.toString(e.getStackTrace()));
	    System.exit(0);
	}
    } try {
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    List<String> lines = new ArrayList<String>();

	    for (String line = br.readLine(); line != null; line = br.readLine()) {
		lines.add(line);
	    }
	    //lines.add("5");
	    //lines.add("1 2 5 4 5");
	    br.close();

	    //List<String> array = new ArrayList<String>();
	    String[] array = new String[Integer.parseInt(lines.get(0))];
	    String[] reverse = new String[Integer.parseInt(lines.get(0))];
	    for (int i = 0; i < array.length ; i++) {
		array[i] = lines.get(1).split(" ")[i];
	    }
	    sb = new StringBuilder();

	    for (int i = array.length - 1; i >= 0 ; i--) {
		if ( i != 0 ) {
		    sb.append(array[i] + " ");
		} else {
		    sb.append(array[i]);
		}
	    }

	    System.out.println(sb.toString());
	    System.exit(0);

	} catch (Exception e) {
	    System.out.println(e.getMessage());
	    System.out.println(Arrays.toString(e.getStackTrace()));
	    System.exit(0);
	} catch (Exception e) {
	    System.out.println(e.getMessage());
	    System.out.println(Arrays.toString(e.getStackTrace()));
	    System.exit(0);
	} Exception e {
	    System.out.println(e.getMessage());
	    System.out.println(Arrays.toString(e.getStackTrace()));
	    System.exit(0);
	} System.out.println(e.getMessage()) System.out.println System.out System System.out e.getMessage() e.getMessage e System.out.println(Arrays.toString(e.getStackTrace())) System.out.println System.out System System.out Arrays.toString(e.getStackTrace()) Arrays.toString Arrays e.getStackTrace() e.getStackTrace e System.exit(0) System.exit System 0 {
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    List<String> lines = new ArrayList<String>();

	    for (String line = br.readLine(); line != null; line = br.readLine()) {
		lines.add(line);
	    }
	    //lines.add("5");
	    //lines.add("1 2 5 4 5");
	    br.close();

	    //List<String> array = new ArrayList<String>();
	    String[] array = new String[Integer.parseInt(lines.get(0))];
	    String[] reverse = new String[Integer.parseInt(lines.get(0))];
	    for (int i = 0; i < array.length ; i++) {
		array[i] = lines.get(1).split(" ")[i];
	    }
	    sb = new StringBuilder();

	    for (int i = array.length - 1; i >= 0 ; i--) {
		if ( i != 0 ) {
		    sb.append(array[i] + " ");
		} else {
		    sb.append(array[i]);
		}
	    }

	    System.out.println(sb.toString());
	    System.exit(0);

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) List<String> lines = new ArrayList<String>(); lines new ArrayList<String>() for (String line = br.readLine(); line != null; line = br.readLine()) {
		lines.add(line);
	    } String line = br.readLine(); String line = br.readLine(); line br.readLine() br.readLine br line != null line null line = br.readLine() line = br.readLine() line br.readLine() br.readLine br {
		lines.add(line);
	    } {
		lines.add(line);
	    } lines.add(line) lines.add lines line br.close() br.close br String[] array = new String[Integer.parseInt(lines.get(0))]; array new String[Integer.parseInt(lines.get(0))] Integer.parseInt(lines.get(0)) Integer.parseInt Integer lines.get(0) lines.get lines 0 String[] reverse = new String[Integer.parseInt(lines.get(0))]; reverse new String[Integer.parseInt(lines.get(0))] Integer.parseInt(lines.get(0)) Integer.parseInt Integer lines.get(0) lines.get lines 0 for (int i = 0; i < array.length ; i++) {
		array[i] = lines.get(1).split(" ")[i];
	    } int i = 0; int i = 0; i 0 i < array.length i array.length array array.length i++ i++ i {
		array[i] = lines.get(1).split(" ")[i];
	    } {
		array[i] = lines.get(1).split(" ")[i];
	    } array[i] = lines.get(1).split(" ")[i] array[i] array i lines.get(1).split(" ")[i] lines.get(1).split(" ") lines.get(1).split lines.get(1) lines.get lines 1 " " i sb = new StringBuilder() sb new StringBuilder() for (int i = array.length - 1; i >= 0 ; i--) {
		if ( i != 0 ) {
		    sb.append(array[i] + " ");
		} else {
		    sb.append(array[i]);
		}
	    } int i = array.length - 1; int i = array.length - 1; i array.length - 1 array.length array array.length 1 i >= 0 i 0 i-- i-- i {
		if ( i != 0 ) {
		    sb.append(array[i] + " ");
		} else {
		    sb.append(array[i]);
		}
	    } {
		if ( i != 0 ) {
		    sb.append(array[i] + " ");
		} else {
		    sb.append(array[i]);
		}
	    } if ( i != 0 ) {
		    sb.append(array[i] + " ");
		} else {
		    sb.append(array[i]);
		} i != 0 i 0 {
		    sb.append(array[i] + " ");
		} sb.append(array[i] + " ") sb.append sb array[i] + " " array[i] array i " " {
		    sb.append(array[i]);
		} sb.append(array[i]) sb.append sb array[i] array i System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb System.exit(0) System.exit System 0 String[] args args public class Main{

    static StringBuilder sb;

    public static void main(String[] args) {
	try {
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    List<String> lines = new ArrayList<String>();

	    for (String line = br.readLine(); line != null; line = br.readLine()) {
		lines.add(line);
	    }
	    //lines.add("5");
	    //lines.add("1 2 5 4 5");
	    br.close();

	    //List<String> array = new ArrayList<String>();
	    String[] array = new String[Integer.parseInt(lines.get(0))];
	    String[] reverse = new String[Integer.parseInt(lines.get(0))];
	    for (int i = 0; i < array.length ; i++) {
		array[i] = lines.get(1).split(" ")[i];
	    }
	    sb = new StringBuilder();

	    for (int i = array.length - 1; i >= 0 ; i--) {
		if ( i != 0 ) {
		    sb.append(array[i] + " ");
		} else {
		    sb.append(array[i]);
		}
	    }

	    System.out.println(sb.toString());
	    System.exit(0);

	} catch (Exception e) {
	    System.out.println(e.getMessage());
	    System.out.println(Arrays.toString(e.getStackTrace()));
	    System.exit(0);
	}
    }
} public class Main{

    static StringBuilder sb;

    public static void main(String[] args) {
	try {
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    List<String> lines = new ArrayList<String>();

	    for (String line = br.readLine(); line != null; line = br.readLine()) {
		lines.add(line);
	    }
	    //lines.add("5");
	    //lines.add("1 2 5 4 5");
	    br.close();

	    //List<String> array = new ArrayList<String>();
	    String[] array = new String[Integer.parseInt(lines.get(0))];
	    String[] reverse = new String[Integer.parseInt(lines.get(0))];
	    for (int i = 0; i < array.length ; i++) {
		array[i] = lines.get(1).split(" ")[i];
	    }
	    sb = new StringBuilder();

	    for (int i = array.length - 1; i >= 0 ; i--) {
		if ( i != 0 ) {
		    sb.append(array[i] + " ");
		} else {
		    sb.append(array[i]);
		}
	    }

	    System.out.println(sb.toString());
	    System.exit(0);

	} catch (Exception e) {
	    System.out.println(e.getMessage());
	    System.out.println(Arrays.toString(e.getStackTrace()));
	    System.exit(0);
	}
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

public class Main{

    static StringBuilder sb;

    public static void main(String[] args) {
	try {
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    List<String> lines = new ArrayList<String>();

	    for (String line = br.readLine(); line != null; line = br.readLine()) {
		lines.add(line);
	    }
	    //lines.add("5");
	    //lines.add("1 2 5 4 5");
	    br.close();

	    //List<String> array = new ArrayList<String>();
	    String[] array = new String[Integer.parseInt(lines.get(0))];
	    String[] reverse = new String[Integer.parseInt(lines.get(0))];
	    for (int i = 0; i < array.length ; i++) {
		array[i] = lines.get(1).split(" ")[i];
	    }
	    sb = new StringBuilder();

	    for (int i = array.length - 1; i >= 0 ; i--) {
		if ( i != 0 ) {
		    sb.append(array[i] + " ");
		} else {
		    sb.append(array[i]);
		}
	    }

	    System.out.println(sb.toString());
	    System.exit(0);

	} catch (Exception e) {
	    System.out.println(e.getMessage());
	    System.out.println(Arrays.toString(e.getStackTrace()));
	    System.exit(0);
	}
    }
}