import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Main {
	public static void main(String[] args) throws IOException{
		int num;
		String[] str;
		List<Integer> list;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();

		num = Integer.parseInt(br.readLine());
		str = br.readLine().split(" ");

		list =  new ArrayList<Integer>(){
			{
				for(int i = 0; i < num; i++){
					add(Integer.parseInt(str[i]));
				}
			}
		};

		Collections.reverse(list);
		for(int i: list){
			builder.append(String.valueOf(i + " "));
		}
		builder.delete(builder.length() - 1, builder.length());

		System.out.println(builder);
		br.close();
	}
} ArrayList<Integer>(){
			{
				for(int i = 0; i < num; i++){
					add(Integer.parseInt(str[i]));
				}
			}
		} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util public class Main {
	public static void main(String[] args) throws IOException{
		int num;
		String[] str;
		List<Integer> list;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();

		num = Integer.parseInt(br.readLine());
		str = br.readLine().split(" ");

		list =  new ArrayList<Integer>(){
			{
				for(int i = 0; i < num; i++){
					add(Integer.parseInt(str[i]));
				}
			}
		};

		Collections.reverse(list);
		for(int i: list){
			builder.append(String.valueOf(i + " "));
		}
		builder.delete(builder.length() - 1, builder.length());

		System.out.println(builder);
		br.close();
	}
} Main public static void main(String[] args) throws IOException{
		int num;
		String[] str;
		List<Integer> list;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();

		num = Integer.parseInt(br.readLine());
		str = br.readLine().split(" ");

		list =  new ArrayList<Integer>(){
			{
				for(int i = 0; i < num; i++){
					add(Integer.parseInt(str[i]));
				}
			}
		};

		Collections.reverse(list);
		for(int i: list){
			builder.append(String.valueOf(i + " "));
		}
		builder.delete(builder.length() - 1, builder.length());

		System.out.println(builder);
		br.close();
	} main {
		int num;
		String[] str;
		List<Integer> list;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();

		num = Integer.parseInt(br.readLine());
		str = br.readLine().split(" ");

		list =  new ArrayList<Integer>(){
			{
				for(int i = 0; i < num; i++){
					add(Integer.parseInt(str[i]));
				}
			}
		};

		Collections.reverse(list);
		for(int i: list){
			builder.append(String.valueOf(i + " "));
		}
		builder.delete(builder.length() - 1, builder.length());

		System.out.println(builder);
		br.close();
	} int num; num String[] str; str List<Integer> list; list BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder builder = new StringBuilder(); builder new StringBuilder() num = Integer.parseInt(br.readLine()) num Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br str = br.readLine().split(" ") str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " list =  new ArrayList<Integer>(){
			{
				for(int i = 0; i < num; i++){
					add(Integer.parseInt(str[i]));
				}
			}
		} list new ArrayList<Integer>(){
			{
				for(int i = 0; i < num; i++){
					add(Integer.parseInt(str[i]));
				}
			}
		} Collections.reverse(list) Collections.reverse Collections list for(int i: list){
			builder.append(String.valueOf(i + " "));
		} int i list {
			builder.append(String.valueOf(i + " "));
		} {
			builder.append(String.valueOf(i + " "));
		} builder.append(String.valueOf(i + " ")) builder.append builder String.valueOf(i + " ") String.valueOf String i + " " i " " builder.delete(builder.length() - 1, builder.length()) builder.delete builder builder.length() - 1 builder.length() builder.length builder 1 builder.length() builder.length builder System.out.println(builder) System.out.println System.out System System.out builder br.close() br.close br String[] args args public class Main {
	public static void main(String[] args) throws IOException{
		int num;
		String[] str;
		List<Integer> list;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();

		num = Integer.parseInt(br.readLine());
		str = br.readLine().split(" ");

		list =  new ArrayList<Integer>(){
			{
				for(int i = 0; i < num; i++){
					add(Integer.parseInt(str[i]));
				}
			}
		};

		Collections.reverse(list);
		for(int i: list){
			builder.append(String.valueOf(i + " "));
		}
		builder.delete(builder.length() - 1, builder.length());

		System.out.println(builder);
		br.close();
	}
} public class Main {
	public static void main(String[] args) throws IOException{
		int num;
		String[] str;
		List<Integer> list;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();

		num = Integer.parseInt(br.readLine());
		str = br.readLine().split(" ");

		list =  new ArrayList<Integer>(){
			{
				for(int i = 0; i < num; i++){
					add(Integer.parseInt(str[i]));
				}
			}
		};

		Collections.reverse(list);
		for(int i: list){
			builder.append(String.valueOf(i + " "));
		}
		builder.delete(builder.length() - 1, builder.length());

		System.out.println(builder);
		br.close();
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Main {
	public static void main(String[] args) throws IOException{
		int num;
		String[] str;
		List<Integer> list;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();

		num = Integer.parseInt(br.readLine());
		str = br.readLine().split(" ");

		list =  new ArrayList<Integer>(){
			{
				for(int i = 0; i < num; i++){
					add(Integer.parseInt(str[i]));
				}
			}
		};

		Collections.reverse(list);
		for(int i: list){
			builder.append(String.valueOf(i + " "));
		}
		builder.delete(builder.length() - 1, builder.length());

		System.out.println(builder);
		br.close();
	}
}