import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class Main {
	public static void main(String args[]) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();
		int num = Integer.parseInt(reader.readLine());
		String data[] = reader.readLine().split(" ");
		int[] ints = new int[num];
		for(int i=0; i<num; i++){
			ints[i] = Integer.parseInt(data[i]);
		}
		
		builder.append(Integer.toString(ints[num-1]));
		for(int i=2; i<=num; i++){
			builder.append(" ").append(Integer.toString(ints[num-i]));
		}
		
		System.out.println(builder);
		
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String args[]) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();
		int num = Integer.parseInt(reader.readLine());
		String data[] = reader.readLine().split(" ");
		int[] ints = new int[num];
		for(int i=0; i<num; i++){
			ints[i] = Integer.parseInt(data[i]);
		}
		
		builder.append(Integer.toString(ints[num-1]));
		for(int i=2; i<=num; i++){
			builder.append(" ").append(Integer.toString(ints[num-i]));
		}
		
		System.out.println(builder);
		
	}
} Main public static void main(String args[]) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();
		int num = Integer.parseInt(reader.readLine());
		String data[] = reader.readLine().split(" ");
		int[] ints = new int[num];
		for(int i=0; i<num; i++){
			ints[i] = Integer.parseInt(data[i]);
		}
		
		builder.append(Integer.toString(ints[num-1]));
		for(int i=2; i<=num; i++){
			builder.append(" ").append(Integer.toString(ints[num-i]));
		}
		
		System.out.println(builder);
		
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();
		int num = Integer.parseInt(reader.readLine());
		String data[] = reader.readLine().split(" ");
		int[] ints = new int[num];
		for(int i=0; i<num; i++){
			ints[i] = Integer.parseInt(data[i]);
		}
		
		builder.append(Integer.toString(ints[num-1]));
		for(int i=2; i<=num; i++){
			builder.append(" ").append(Integer.toString(ints[num-i]));
		}
		
		System.out.println(builder);
		
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) StringBuilder builder = new StringBuilder(); builder new StringBuilder() int num = Integer.parseInt(reader.readLine()); num Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader String data[] = reader.readLine().split(" "); data reader.readLine().split(" ") reader.readLine().split reader.readLine() reader.readLine reader " " int[] ints = new int[num]; ints new int[num] num for(int i=0; i<num; i++){
			ints[i] = Integer.parseInt(data[i]);
		} int i=0; int i=0; i 0 i<num i num i++ i++ i {
			ints[i] = Integer.parseInt(data[i]);
		} {
			ints[i] = Integer.parseInt(data[i]);
		} ints[i] = Integer.parseInt(data[i]) ints[i] ints i Integer.parseInt(data[i]) Integer.parseInt Integer data[i] data i builder.append(Integer.toString(ints[num-1])) builder.append builder Integer.toString(ints[num-1]) Integer.toString Integer ints[num-1] ints num-1 num 1 for(int i=2; i<=num; i++){
			builder.append(" ").append(Integer.toString(ints[num-i]));
		} int i=2; int i=2; i 2 i<=num i num i++ i++ i {
			builder.append(" ").append(Integer.toString(ints[num-i]));
		} {
			builder.append(" ").append(Integer.toString(ints[num-i]));
		} builder.append(" ").append(Integer.toString(ints[num-i])) builder.append(" ").append builder.append(" ") builder.append builder " " Integer.toString(ints[num-i]) Integer.toString Integer ints[num-i] ints num-i num i System.out.println(builder) System.out.println System.out System System.out builder String args[] args public class Main {
	public static void main(String args[]) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();
		int num = Integer.parseInt(reader.readLine());
		String data[] = reader.readLine().split(" ");
		int[] ints = new int[num];
		for(int i=0; i<num; i++){
			ints[i] = Integer.parseInt(data[i]);
		}
		
		builder.append(Integer.toString(ints[num-1]));
		for(int i=2; i<=num; i++){
			builder.append(" ").append(Integer.toString(ints[num-i]));
		}
		
		System.out.println(builder);
		
	}
} public class Main {
	public static void main(String args[]) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();
		int num = Integer.parseInt(reader.readLine());
		String data[] = reader.readLine().split(" ");
		int[] ints = new int[num];
		for(int i=0; i<num; i++){
			ints[i] = Integer.parseInt(data[i]);
		}
		
		builder.append(Integer.toString(ints[num-1]));
		for(int i=2; i<=num; i++){
			builder.append(" ").append(Integer.toString(ints[num-i]));
		}
		
		System.out.println(builder);
		
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class Main {
	public static void main(String args[]) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();
		int num = Integer.parseInt(reader.readLine());
		String data[] = reader.readLine().split(" ");
		int[] ints = new int[num];
		for(int i=0; i<num; i++){
			ints[i] = Integer.parseInt(data[i]);
		}
		
		builder.append(Integer.toString(ints[num-1]));
		for(int i=2; i<=num; i++){
			builder.append(" ").append(Integer.toString(ints[num-i]));
		}
		
		System.out.println(builder);
		
	}
}