import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String args[]) throws IOException {

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		// ???????????°?????????
		int count = sc.nextInt();

		// ??????????????????????´?
		List<String> list = new ArrayList<String>();
		for (int i = 0; i < count; i++) {
			list.add(sc.next());
		}

		// ???????????????????????\?????????
		Collections.reverse(list);
		
		// ?????????????????§??£???????????????
		System.out.println(String.join(" ", list));
	}
} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]) throws IOException {

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		// ???????????°?????????
		int count = sc.nextInt();

		// ??????????????????????´?
		List<String> list = new ArrayList<String>();
		for (int i = 0; i < count; i++) {
			list.add(sc.next());
		}

		// ???????????????????????\?????????
		Collections.reverse(list);
		
		// ?????????????????§??£???????????????
		System.out.println(String.join(" ", list));
	}
} Main public static void main(String args[]) throws IOException {

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		// ???????????°?????????
		int count = sc.nextInt();

		// ??????????????????????´?
		List<String> list = new ArrayList<String>();
		for (int i = 0; i < count; i++) {
			list.add(sc.next());
		}

		// ???????????????????????\?????????
		Collections.reverse(list);
		
		// ?????????????????§??£???????????????
		System.out.println(String.join(" ", list));
	} main {

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		// ???????????°?????????
		int count = sc.nextInt();

		// ??????????????????????´?
		List<String> list = new ArrayList<String>();
		for (int i = 0; i < count; i++) {
			list.add(sc.next());
		}

		// ???????????????????????\?????????
		Collections.reverse(list);
		
		// ?????????????????§??£???????????????
		System.out.println(String.join(" ", list));
	} @SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count = sc.nextInt(); count sc.nextInt() sc.nextInt sc List<String> list = new ArrayList<String>(); list new ArrayList<String>() for (int i = 0; i < count; i++) {
			list.add(sc.next());
		} int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
			list.add(sc.next());
		} {
			list.add(sc.next());
		} list.add(sc.next()) list.add list sc.next() sc.next sc Collections.reverse(list) Collections.reverse Collections list System.out.println(String.join(" ", list)) System.out.println System.out System System.out String.join(" ", list) String.join String " " list String args[] args public class Main {
	public static void main(String args[]) throws IOException {

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		// ???????????°?????????
		int count = sc.nextInt();

		// ??????????????????????´?
		List<String> list = new ArrayList<String>();
		for (int i = 0; i < count; i++) {
			list.add(sc.next());
		}

		// ???????????????????????\?????????
		Collections.reverse(list);
		
		// ?????????????????§??£???????????????
		System.out.println(String.join(" ", list));
	}
} public class Main {
	public static void main(String args[]) throws IOException {

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		// ???????????°?????????
		int count = sc.nextInt();

		// ??????????????????????´?
		List<String> list = new ArrayList<String>();
		for (int i = 0; i < count; i++) {
			list.add(sc.next());
		}

		// ???????????????????????\?????????
		Collections.reverse(list);
		
		// ?????????????????§??£???????????????
		System.out.println(String.join(" ", list));
	}
} Main
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String args[]) throws IOException {

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		// ???????????°?????????
		int count = sc.nextInt();

		// ??????????????????????´?
		List<String> list = new ArrayList<String>();
		for (int i = 0; i < count; i++) {
			list.add(sc.next());
		}

		// ???????????????????????\?????????
		Collections.reverse(list);
		
		// ?????????????????§??£???????????????
		System.out.println(String.join(" ", list));
	}
}