import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = Integer.parseInt(s.nextLine());
		boolean flag=true;
		int[] seq = new int[n];
		if(n<=100) {
		
		for(int i=0;i<n;i++) {
			seq[i]=s.nextInt();
			if(seq[i]>=0 && seq[i]<1000) {
				continue;
			}else {
				flag=false;
				break;
			}
		}
		}
		
		if(flag==true) {
			for(int j=n;j>0;j--) {
				if(j!=1) {
					System.out.print(seq[j-1]+" ");
				}else {
					System.out.println(seq[j-1]);
				}
			}
		}
		
	}

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

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = Integer.parseInt(s.nextLine());
		boolean flag=true;
		int[] seq = new int[n];
		if(n<=100) {
		
		for(int i=0;i<n;i++) {
			seq[i]=s.nextInt();
			if(seq[i]>=0 && seq[i]<1000) {
				continue;
			}else {
				flag=false;
				break;
			}
		}
		}
		
		if(flag==true) {
			for(int j=n;j>0;j--) {
				if(j!=1) {
					System.out.print(seq[j-1]+" ");
				}else {
					System.out.println(seq[j-1]);
				}
			}
		}
		
	}

} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = Integer.parseInt(s.nextLine());
		boolean flag=true;
		int[] seq = new int[n];
		if(n<=100) {
		
		for(int i=0;i<n;i++) {
			seq[i]=s.nextInt();
			if(seq[i]>=0 && seq[i]<1000) {
				continue;
			}else {
				flag=false;
				break;
			}
		}
		}
		
		if(flag==true) {
			for(int j=n;j>0;j--) {
				if(j!=1) {
					System.out.print(seq[j-1]+" ");
				}else {
					System.out.println(seq[j-1]);
				}
			}
		}
		
	} main {
		Scanner s = new Scanner(System.in);
		int n = Integer.parseInt(s.nextLine());
		boolean flag=true;
		int[] seq = new int[n];
		if(n<=100) {
		
		for(int i=0;i<n;i++) {
			seq[i]=s.nextInt();
			if(seq[i]>=0 && seq[i]<1000) {
				continue;
			}else {
				flag=false;
				break;
			}
		}
		}
		
		if(flag==true) {
			for(int j=n;j>0;j--) {
				if(j!=1) {
					System.out.print(seq[j-1]+" ");
				}else {
					System.out.println(seq[j-1]);
				}
			}
		}
		
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = Integer.parseInt(s.nextLine()); n Integer.parseInt(s.nextLine()) Integer.parseInt Integer s.nextLine() s.nextLine s boolean flag=true; flag true int[] seq = new int[n]; seq new int[n] n if(n<=100) {
		
		for(int i=0;i<n;i++) {
			seq[i]=s.nextInt();
			if(seq[i]>=0 && seq[i]<1000) {
				continue;
			}else {
				flag=false;
				break;
			}
		}
		} n<=100 n 100 {
		
		for(int i=0;i<n;i++) {
			seq[i]=s.nextInt();
			if(seq[i]>=0 && seq[i]<1000) {
				continue;
			}else {
				flag=false;
				break;
			}
		}
		} for(int i=0;i<n;i++) {
			seq[i]=s.nextInt();
			if(seq[i]>=0 && seq[i]<1000) {
				continue;
			}else {
				flag=false;
				break;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			seq[i]=s.nextInt();
			if(seq[i]>=0 && seq[i]<1000) {
				continue;
			}else {
				flag=false;
				break;
			}
		} {
			seq[i]=s.nextInt();
			if(seq[i]>=0 && seq[i]<1000) {
				continue;
			}else {
				flag=false;
				break;
			}
		} seq[i]=s.nextInt() seq[i] seq i s.nextInt() s.nextInt s if(seq[i]>=0 && seq[i]<1000) {
				continue;
			}else {
				flag=false;
				break;
			} seq[i]>=0 && seq[i]<1000 seq[i]>=0 seq[i] seq i 0 seq[i]<1000 seq[i] seq i 1000 {
				continue;
			} continue; {
				flag=false;
				break;
			} flag=false flag false break; if(flag==true) {
			for(int j=n;j>0;j--) {
				if(j!=1) {
					System.out.print(seq[j-1]+" ");
				}else {
					System.out.println(seq[j-1]);
				}
			}
		} flag==true flag true {
			for(int j=n;j>0;j--) {
				if(j!=1) {
					System.out.print(seq[j-1]+" ");
				}else {
					System.out.println(seq[j-1]);
				}
			}
		} for(int j=n;j>0;j--) {
				if(j!=1) {
					System.out.print(seq[j-1]+" ");
				}else {
					System.out.println(seq[j-1]);
				}
			} int j=n; int j=n; j n j>0 j 0 j-- j-- j {
				if(j!=1) {
					System.out.print(seq[j-1]+" ");
				}else {
					System.out.println(seq[j-1]);
				}
			} {
				if(j!=1) {
					System.out.print(seq[j-1]+" ");
				}else {
					System.out.println(seq[j-1]);
				}
			} if(j!=1) {
					System.out.print(seq[j-1]+" ");
				}else {
					System.out.println(seq[j-1]);
				} j!=1 j 1 {
					System.out.print(seq[j-1]+" ");
				} System.out.print(seq[j-1]+" ") System.out.print System.out System System.out seq[j-1]+" " seq[j-1] seq j-1 j 1 " " {
					System.out.println(seq[j-1]);
				} System.out.println(seq[j-1]) System.out.println System.out System System.out seq[j-1] seq j-1 j 1 String[] args args public class Main{

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = Integer.parseInt(s.nextLine());
		boolean flag=true;
		int[] seq = new int[n];
		if(n<=100) {
		
		for(int i=0;i<n;i++) {
			seq[i]=s.nextInt();
			if(seq[i]>=0 && seq[i]<1000) {
				continue;
			}else {
				flag=false;
				break;
			}
		}
		}
		
		if(flag==true) {
			for(int j=n;j>0;j--) {
				if(j!=1) {
					System.out.print(seq[j-1]+" ");
				}else {
					System.out.println(seq[j-1]);
				}
			}
		}
		
	}

} public class Main{

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = Integer.parseInt(s.nextLine());
		boolean flag=true;
		int[] seq = new int[n];
		if(n<=100) {
		
		for(int i=0;i<n;i++) {
			seq[i]=s.nextInt();
			if(seq[i]>=0 && seq[i]<1000) {
				continue;
			}else {
				flag=false;
				break;
			}
		}
		}
		
		if(flag==true) {
			for(int j=n;j>0;j--) {
				if(j!=1) {
					System.out.print(seq[j-1]+" ");
				}else {
					System.out.println(seq[j-1]);
				}
			}
		}
		
	}

} Main
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = Integer.parseInt(s.nextLine());
		boolean flag=true;
		int[] seq = new int[n];
		if(n<=100) {
		
		for(int i=0;i<n;i++) {
			seq[i]=s.nextInt();
			if(seq[i]>=0 && seq[i]<1000) {
				continue;
			}else {
				flag=false;
				break;
			}
		}
		}
		
		if(flag==true) {
			for(int j=n;j>0;j--) {
				if(j!=1) {
					System.out.print(seq[j-1]+" ");
				}else {
					System.out.println(seq[j-1]);
				}
			}
		}
		
	}

}