import java.util.Scanner;

public class Main {


	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int x = 0, i = 0;
        int[] arr = new int[n];
        if(n <= 100){
        for(i = 0;i < n ;i++){
        	x = scan.nextInt();
        	if(0 <= x && x < 1000){
        	arr[i] = x;
        	}
        }
        for(i = n-1;i >= 0;i--){
        System.out.print(arr[i]);
        if( i > 0){
        System.out.print(" ");
        }
        }System.out.println();
               
 }
		
		
		}
}	
			
		
	
		
		



		 import java.util.Scanner; Scanner java.util public class Main {


	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int x = 0, i = 0;
        int[] arr = new int[n];
        if(n <= 100){
        for(i = 0;i < n ;i++){
        	x = scan.nextInt();
        	if(0 <= x && x < 1000){
        	arr[i] = x;
        	}
        }
        for(i = n-1;i >= 0;i--){
        System.out.print(arr[i]);
        if( i > 0){
        System.out.print(" ");
        }
        }System.out.println();
               
 }
		
		
		}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int x = 0, i = 0;
        int[] arr = new int[n];
        if(n <= 100){
        for(i = 0;i < n ;i++){
        	x = scan.nextInt();
        	if(0 <= x && x < 1000){
        	arr[i] = x;
        	}
        }
        for(i = n-1;i >= 0;i--){
        System.out.print(arr[i]);
        if( i > 0){
        System.out.print(" ");
        }
        }System.out.println();
               
 }
		
		
		} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int x = 0, i = 0;
        int[] arr = new int[n];
        if(n <= 100){
        for(i = 0;i < n ;i++){
        	x = scan.nextInt();
        	if(0 <= x && x < 1000){
        	arr[i] = x;
        	}
        }
        for(i = n-1;i >= 0;i--){
        System.out.print(arr[i]);
        if( i > 0){
        System.out.print(" ");
        }
        }System.out.println();
               
 }
		
		
		} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int x = 0 x 0 i = 0; i 0 int[] arr = new int[n]; arr new int[n] n if(n <= 100){
        for(i = 0;i < n ;i++){
        	x = scan.nextInt();
        	if(0 <= x && x < 1000){
        	arr[i] = x;
        	}
        }
        for(i = n-1;i >= 0;i--){
        System.out.print(arr[i]);
        if( i > 0){
        System.out.print(" ");
        }
        }System.out.println();
               
 } n <= 100 n 100 {
        for(i = 0;i < n ;i++){
        	x = scan.nextInt();
        	if(0 <= x && x < 1000){
        	arr[i] = x;
        	}
        }
        for(i = n-1;i >= 0;i--){
        System.out.print(arr[i]);
        if( i > 0){
        System.out.print(" ");
        }
        }System.out.println();
               
 } for(i = 0;i < n ;i++){
        	x = scan.nextInt();
        	if(0 <= x && x < 1000){
        	arr[i] = x;
        	}
        } i = 0; i = 0 i 0 i < n i n i++ i++ i {
        	x = scan.nextInt();
        	if(0 <= x && x < 1000){
        	arr[i] = x;
        	}
        } {
        	x = scan.nextInt();
        	if(0 <= x && x < 1000){
        	arr[i] = x;
        	}
        } x = scan.nextInt() x scan.nextInt() scan.nextInt scan if(0 <= x && x < 1000){
        	arr[i] = x;
        	} 0 <= x && x < 1000 0 <= x 0 x x < 1000 x 1000 {
        	arr[i] = x;
        	} arr[i] = x arr[i] arr i x for(i = n-1;i >= 0;i--){
        System.out.print(arr[i]);
        if( i > 0){
        System.out.print(" ");
        }
        } i = n-1; i = n-1 i n-1 n 1 i >= 0 i 0 i-- i-- i {
        System.out.print(arr[i]);
        if( i > 0){
        System.out.print(" ");
        }
        } {
        System.out.print(arr[i]);
        if( i > 0){
        System.out.print(" ");
        }
        } System.out.print(arr[i]) System.out.print System.out System System.out arr[i] arr i if( i > 0){
        System.out.print(" ");
        } i > 0 i 0 {
        System.out.print(" ");
        } System.out.print(" ") System.out.print System.out System System.out " " System.out.println() System.out.println System.out System System.out String[] args args public class Main {


	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int x = 0, i = 0;
        int[] arr = new int[n];
        if(n <= 100){
        for(i = 0;i < n ;i++){
        	x = scan.nextInt();
        	if(0 <= x && x < 1000){
        	arr[i] = x;
        	}
        }
        for(i = n-1;i >= 0;i--){
        System.out.print(arr[i]);
        if( i > 0){
        System.out.print(" ");
        }
        }System.out.println();
               
 }
		
		
		}
} public class Main {


	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int x = 0, i = 0;
        int[] arr = new int[n];
        if(n <= 100){
        for(i = 0;i < n ;i++){
        	x = scan.nextInt();
        	if(0 <= x && x < 1000){
        	arr[i] = x;
        	}
        }
        for(i = n-1;i >= 0;i--){
        System.out.print(arr[i]);
        if( i > 0){
        System.out.print(" ");
        }
        }System.out.println();
               
 }
		
		
		}
} Main
import java.util.Scanner;

public class Main {


	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int x = 0, i = 0;
        int[] arr = new int[n];
        if(n <= 100){
        for(i = 0;i < n ;i++){
        	x = scan.nextInt();
        	if(0 <= x && x < 1000){
        	arr[i] = x;
        	}
        }
        for(i = n-1;i >= 0;i--){
        System.out.print(arr[i]);
        if( i > 0){
        System.out.print(" ");
        }
        }System.out.println();
               
 }
		
		
		}
}	
			
		
	
		
		



		