import java.util.*;

public class Main{
	
	static int[] Revers(int[] Numbers , int n){
		
		for(int i = 0; i < n/2 ; i++){
			int t = Numbers[i];
			Numbers[i] = Numbers[n - i -1];
			Numbers[n - i - 1]= t;
		}
		return Numbers;
	}
	
	static int[] Input(){
		Scanner scanner = new Scanner(System.in);		
		int n 			= scanner.nextInt();
		int[] Numbers	= new int[n];
		for(int i = 0; i < n ; i++){
			Numbers[i] = scanner.nextInt();
		}
		scanner.close();
		return Revers(Numbers, n);
		
	}
	
	public static void main(String[] args) {
		int[] RN = Input();
		for(int i = 0 ; i < (RN.length-1) ; i++){
			System.out.print(RN[i] + " ");			
		}
		System.out.println(RN[RN.length-1]);
	}

} import java.util.*; util.* java public class Main{
	
	static int[] Revers(int[] Numbers , int n){
		
		for(int i = 0; i < n/2 ; i++){
			int t = Numbers[i];
			Numbers[i] = Numbers[n - i -1];
			Numbers[n - i - 1]= t;
		}
		return Numbers;
	}
	
	static int[] Input(){
		Scanner scanner = new Scanner(System.in);		
		int n 			= scanner.nextInt();
		int[] Numbers	= new int[n];
		for(int i = 0; i < n ; i++){
			Numbers[i] = scanner.nextInt();
		}
		scanner.close();
		return Revers(Numbers, n);
		
	}
	
	public static void main(String[] args) {
		int[] RN = Input();
		for(int i = 0 ; i < (RN.length-1) ; i++){
			System.out.print(RN[i] + " ");			
		}
		System.out.println(RN[RN.length-1]);
	}

} Main static int[] Revers(int[] Numbers , int n){
		
		for(int i = 0; i < n/2 ; i++){
			int t = Numbers[i];
			Numbers[i] = Numbers[n - i -1];
			Numbers[n - i - 1]= t;
		}
		return Numbers;
	} Revers {
		
		for(int i = 0; i < n/2 ; i++){
			int t = Numbers[i];
			Numbers[i] = Numbers[n - i -1];
			Numbers[n - i - 1]= t;
		}
		return Numbers;
	} for(int i = 0; i < n/2 ; i++){
			int t = Numbers[i];
			Numbers[i] = Numbers[n - i -1];
			Numbers[n - i - 1]= t;
		} int i = 0; int i = 0; i 0 i < n/2 i n/2 n 2 i++ i++ i {
			int t = Numbers[i];
			Numbers[i] = Numbers[n - i -1];
			Numbers[n - i - 1]= t;
		} {
			int t = Numbers[i];
			Numbers[i] = Numbers[n - i -1];
			Numbers[n - i - 1]= t;
		} int t = Numbers[i]; t Numbers[i] Numbers i Numbers[i] = Numbers[n - i -1] Numbers[i] Numbers i Numbers[n - i -1] Numbers n - i -1 n - i -1 n i 1 Numbers[n - i - 1]= t Numbers[n - i - 1] Numbers n - i - 1 n - i - 1 n i 1 t return Numbers; Numbers int[] Numbers Numbers int n n static int[] Input(){
		Scanner scanner = new Scanner(System.in);		
		int n 			= scanner.nextInt();
		int[] Numbers	= new int[n];
		for(int i = 0; i < n ; i++){
			Numbers[i] = scanner.nextInt();
		}
		scanner.close();
		return Revers(Numbers, n);
		
	} Input {
		Scanner scanner = new Scanner(System.in);		
		int n 			= scanner.nextInt();
		int[] Numbers	= new int[n];
		for(int i = 0; i < n ; i++){
			Numbers[i] = scanner.nextInt();
		}
		scanner.close();
		return Revers(Numbers, n);
		
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n 			= scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int[] Numbers	= new int[n]; Numbers new int[n] n for(int i = 0; i < n ; i++){
			Numbers[i] = scanner.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			Numbers[i] = scanner.nextInt();
		} {
			Numbers[i] = scanner.nextInt();
		} Numbers[i] = scanner.nextInt() Numbers[i] Numbers i scanner.nextInt() scanner.nextInt scanner scanner.close() scanner.close scanner return Revers(Numbers, n); Revers(Numbers, n) Revers Numbers n public static void main(String[] args) {
		int[] RN = Input();
		for(int i = 0 ; i < (RN.length-1) ; i++){
			System.out.print(RN[i] + " ");			
		}
		System.out.println(RN[RN.length-1]);
	} main {
		int[] RN = Input();
		for(int i = 0 ; i < (RN.length-1) ; i++){
			System.out.print(RN[i] + " ");			
		}
		System.out.println(RN[RN.length-1]);
	} int[] RN = Input(); RN Input() Input for(int i = 0 ; i < (RN.length-1) ; i++){
			System.out.print(RN[i] + " ");			
		} int i = 0 ; int i = 0 ; i 0 i < (RN.length-1) i (RN.length-1) RN.length RN RN.length 1 i++ i++ i {
			System.out.print(RN[i] + " ");			
		} {
			System.out.print(RN[i] + " ");			
		} System.out.print(RN[i] + " ") System.out.print System.out System System.out RN[i] + " " RN[i] RN i " " System.out.println(RN[RN.length-1]) System.out.println System.out System System.out RN[RN.length-1] RN RN.length-1 RN.length RN RN.length 1 String[] args args public class Main{
	
	static int[] Revers(int[] Numbers , int n){
		
		for(int i = 0; i < n/2 ; i++){
			int t = Numbers[i];
			Numbers[i] = Numbers[n - i -1];
			Numbers[n - i - 1]= t;
		}
		return Numbers;
	}
	
	static int[] Input(){
		Scanner scanner = new Scanner(System.in);		
		int n 			= scanner.nextInt();
		int[] Numbers	= new int[n];
		for(int i = 0; i < n ; i++){
			Numbers[i] = scanner.nextInt();
		}
		scanner.close();
		return Revers(Numbers, n);
		
	}
	
	public static void main(String[] args) {
		int[] RN = Input();
		for(int i = 0 ; i < (RN.length-1) ; i++){
			System.out.print(RN[i] + " ");			
		}
		System.out.println(RN[RN.length-1]);
	}

} public class Main{
	
	static int[] Revers(int[] Numbers , int n){
		
		for(int i = 0; i < n/2 ; i++){
			int t = Numbers[i];
			Numbers[i] = Numbers[n - i -1];
			Numbers[n - i - 1]= t;
		}
		return Numbers;
	}
	
	static int[] Input(){
		Scanner scanner = new Scanner(System.in);		
		int n 			= scanner.nextInt();
		int[] Numbers	= new int[n];
		for(int i = 0; i < n ; i++){
			Numbers[i] = scanner.nextInt();
		}
		scanner.close();
		return Revers(Numbers, n);
		
	}
	
	public static void main(String[] args) {
		int[] RN = Input();
		for(int i = 0 ; i < (RN.length-1) ; i++){
			System.out.print(RN[i] + " ");			
		}
		System.out.println(RN[RN.length-1]);
	}

} Main
import java.util.*;

public class Main{
	
	static int[] Revers(int[] Numbers , int n){
		
		for(int i = 0; i < n/2 ; i++){
			int t = Numbers[i];
			Numbers[i] = Numbers[n - i -1];
			Numbers[n - i - 1]= t;
		}
		return Numbers;
	}
	
	static int[] Input(){
		Scanner scanner = new Scanner(System.in);		
		int n 			= scanner.nextInt();
		int[] Numbers	= new int[n];
		for(int i = 0; i < n ; i++){
			Numbers[i] = scanner.nextInt();
		}
		scanner.close();
		return Revers(Numbers, n);
		
	}
	
	public static void main(String[] args) {
		int[] RN = Input();
		for(int i = 0 ; i < (RN.length-1) ; i++){
			System.out.print(RN[i] + " ");			
		}
		System.out.println(RN[RN.length-1]);
	}

}