import java.util.ArrayList;
import java.util.Scanner;


public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int a;
		ArrayList<String> list = new ArrayList<String>();
		
		//??\???????????´??°?????????????????????
		for (int i = 0; i < n; i++) {
			a=sc.nextInt();
			list.add(String.valueOf(a));
			list.add(" ");
		}
		//????????????????????????
		list.remove(list.size()-1);
		//???????????????
		for (int i = 0; i < list.size(); i++) {
			System.out.print(list.get(list.size()-1-i));
		}
		//??????
		System.out.println();
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int a;
		ArrayList<String> list = new ArrayList<String>();
		
		//??\???????????´??°?????????????????????
		for (int i = 0; i < n; i++) {
			a=sc.nextInt();
			list.add(String.valueOf(a));
			list.add(" ");
		}
		//????????????????????????
		list.remove(list.size()-1);
		//???????????????
		for (int i = 0; i < list.size(); i++) {
			System.out.print(list.get(list.size()-1-i));
		}
		//??????
		System.out.println();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int a;
		ArrayList<String> list = new ArrayList<String>();
		
		//??\???????????´??°?????????????????????
		for (int i = 0; i < n; i++) {
			a=sc.nextInt();
			list.add(String.valueOf(a));
			list.add(" ");
		}
		//????????????????????????
		list.remove(list.size()-1);
		//???????????????
		for (int i = 0; i < list.size(); i++) {
			System.out.print(list.get(list.size()-1-i));
		}
		//??????
		System.out.println();
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int a;
		ArrayList<String> list = new ArrayList<String>();
		
		//??\???????????´??°?????????????????????
		for (int i = 0; i < n; i++) {
			a=sc.nextInt();
			list.add(String.valueOf(a));
			list.add(" ");
		}
		//????????????????????????
		list.remove(list.size()-1);
		//???????????????
		for (int i = 0; i < list.size(); i++) {
			System.out.print(list.get(list.size()-1-i));
		}
		//??????
		System.out.println();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int a; a ArrayList<String> list = new ArrayList<String>(); list new ArrayList<String>() for (int i = 0; i < n; i++) {
			a=sc.nextInt();
			list.add(String.valueOf(a));
			list.add(" ");
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			a=sc.nextInt();
			list.add(String.valueOf(a));
			list.add(" ");
		} {
			a=sc.nextInt();
			list.add(String.valueOf(a));
			list.add(" ");
		} a=sc.nextInt() a sc.nextInt() sc.nextInt sc list.add(String.valueOf(a)) list.add list String.valueOf(a) String.valueOf String a list.add(" ") list.add list " " list.remove(list.size()-1) list.remove list list.size()-1 list.size() list.size list 1 for (int i = 0; i < list.size(); i++) {
			System.out.print(list.get(list.size()-1-i));
		} int i = 0; int i = 0; i 0 i < list.size() i list.size() list.size list i++ i++ i {
			System.out.print(list.get(list.size()-1-i));
		} {
			System.out.print(list.get(list.size()-1-i));
		} System.out.print(list.get(list.size()-1-i)) System.out.print System.out System System.out list.get(list.size()-1-i) list.get list list.size()-1-i list.size()-1-i list.size() list.size list 1 i System.out.println() System.out.println System.out System System.out String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int a;
		ArrayList<String> list = new ArrayList<String>();
		
		//??\???????????´??°?????????????????????
		for (int i = 0; i < n; i++) {
			a=sc.nextInt();
			list.add(String.valueOf(a));
			list.add(" ");
		}
		//????????????????????????
		list.remove(list.size()-1);
		//???????????????
		for (int i = 0; i < list.size(); i++) {
			System.out.print(list.get(list.size()-1-i));
		}
		//??????
		System.out.println();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int a;
		ArrayList<String> list = new ArrayList<String>();
		
		//??\???????????´??°?????????????????????
		for (int i = 0; i < n; i++) {
			a=sc.nextInt();
			list.add(String.valueOf(a));
			list.add(" ");
		}
		//????????????????????????
		list.remove(list.size()-1);
		//???????????????
		for (int i = 0; i < list.size(); i++) {
			System.out.print(list.get(list.size()-1-i));
		}
		//??????
		System.out.println();
	}
} Main
import java.util.ArrayList;
import java.util.Scanner;


public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int a;
		ArrayList<String> list = new ArrayList<String>();
		
		//??\???????????´??°?????????????????????
		for (int i = 0; i < n; i++) {
			a=sc.nextInt();
			list.add(String.valueOf(a));
			list.add(" ");
		}
		//????????????????????????
		list.remove(list.size()-1);
		//???????????????
		for (int i = 0; i < list.size(); i++) {
			System.out.print(list.get(list.size()-1-i));
		}
		//??????
		System.out.println();
	}
}