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

public class Main {
	public static void main(String[] age)throws IOException{
		BufferedReader sb = new BufferedReader(new InputStreamReader(System.in));
		String input = sb.readLine();
		int g = Integer.parseInt(input);
		int i = 0;
		int j = 0;
		int t = 0;
		String[] reinput = sb.readLine().split(" ");
		StringBuffer br = new StringBuffer();
		int[] sainput = new int[g];

		for( i=0 ; i<g ; i++ ){
			sainput[i] = Integer.parseInt(reinput[i]);
		}

		g--;
		j = g;

		if(g%2==1){
			for( i=0 ; i<=j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		}else{
			for( i=0 ; i<j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		}

		for( i=0 ; i<=j ; i++){
			br.append(sainput[i]);
			if( i==j ) break;
			br.append(" ");
		}
		System.out.println(br);
	}
} 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[] age)throws IOException{
		BufferedReader sb = new BufferedReader(new InputStreamReader(System.in));
		String input = sb.readLine();
		int g = Integer.parseInt(input);
		int i = 0;
		int j = 0;
		int t = 0;
		String[] reinput = sb.readLine().split(" ");
		StringBuffer br = new StringBuffer();
		int[] sainput = new int[g];

		for( i=0 ; i<g ; i++ ){
			sainput[i] = Integer.parseInt(reinput[i]);
		}

		g--;
		j = g;

		if(g%2==1){
			for( i=0 ; i<=j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		}else{
			for( i=0 ; i<j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		}

		for( i=0 ; i<=j ; i++){
			br.append(sainput[i]);
			if( i==j ) break;
			br.append(" ");
		}
		System.out.println(br);
	}
} Main public static void main(String[] age)throws IOException{
		BufferedReader sb = new BufferedReader(new InputStreamReader(System.in));
		String input = sb.readLine();
		int g = Integer.parseInt(input);
		int i = 0;
		int j = 0;
		int t = 0;
		String[] reinput = sb.readLine().split(" ");
		StringBuffer br = new StringBuffer();
		int[] sainput = new int[g];

		for( i=0 ; i<g ; i++ ){
			sainput[i] = Integer.parseInt(reinput[i]);
		}

		g--;
		j = g;

		if(g%2==1){
			for( i=0 ; i<=j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		}else{
			for( i=0 ; i<j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		}

		for( i=0 ; i<=j ; i++){
			br.append(sainput[i]);
			if( i==j ) break;
			br.append(" ");
		}
		System.out.println(br);
	} main {
		BufferedReader sb = new BufferedReader(new InputStreamReader(System.in));
		String input = sb.readLine();
		int g = Integer.parseInt(input);
		int i = 0;
		int j = 0;
		int t = 0;
		String[] reinput = sb.readLine().split(" ");
		StringBuffer br = new StringBuffer();
		int[] sainput = new int[g];

		for( i=0 ; i<g ; i++ ){
			sainput[i] = Integer.parseInt(reinput[i]);
		}

		g--;
		j = g;

		if(g%2==1){
			for( i=0 ; i<=j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		}else{
			for( i=0 ; i<j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		}

		for( i=0 ; i<=j ; i++){
			br.append(sainput[i]);
			if( i==j ) break;
			br.append(" ");
		}
		System.out.println(br);
	} BufferedReader sb = new BufferedReader(new InputStreamReader(System.in)); sb new BufferedReader(new InputStreamReader(System.in)) String input = sb.readLine(); input sb.readLine() sb.readLine sb int g = Integer.parseInt(input); g Integer.parseInt(input) Integer.parseInt Integer input int i = 0; i 0 int j = 0; j 0 int t = 0; t 0 String[] reinput = sb.readLine().split(" "); reinput sb.readLine().split(" ") sb.readLine().split sb.readLine() sb.readLine sb " " StringBuffer br = new StringBuffer(); br new StringBuffer() int[] sainput = new int[g]; sainput new int[g] g for( i=0 ; i<g ; i++ ){
			sainput[i] = Integer.parseInt(reinput[i]);
		} i=0 ; i=0 i 0 i<g i g i++ i++ i {
			sainput[i] = Integer.parseInt(reinput[i]);
		} {
			sainput[i] = Integer.parseInt(reinput[i]);
		} sainput[i] = Integer.parseInt(reinput[i]) sainput[i] sainput i Integer.parseInt(reinput[i]) Integer.parseInt Integer reinput[i] reinput i g-- g j = g j g if(g%2==1){
			for( i=0 ; i<=j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		}else{
			for( i=0 ; i<j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		} g%2==1 g%2 g 2 1 {
			for( i=0 ; i<=j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		} for( i=0 ; i<=j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			} i=0 ; i=0 i 0 i<=j/2 i j/2 j 2 i++ i++ i {
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			} {
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			} t = sainput[i] t sainput[i] sainput i sainput[i]=sainput[g] sainput[i] sainput i sainput[g] sainput g sainput[g]=t sainput[g] sainput g t g-- g {
			for( i=0 ; i<j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		} for( i=0 ; i<j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			} i=0 ; i=0 i 0 i<j/2 i j/2 j 2 i++ i++ i {
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			} {
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			} t = sainput[i] t sainput[i] sainput i sainput[i]=sainput[g] sainput[i] sainput i sainput[g] sainput g sainput[g]=t sainput[g] sainput g t g-- g for( i=0 ; i<=j ; i++){
			br.append(sainput[i]);
			if( i==j ) break;
			br.append(" ");
		} i=0 ; i=0 i 0 i<=j i j i++ i++ i {
			br.append(sainput[i]);
			if( i==j ) break;
			br.append(" ");
		} {
			br.append(sainput[i]);
			if( i==j ) break;
			br.append(" ");
		} br.append(sainput[i]) br.append br sainput[i] sainput i if( i==j ) break; i==j i j break; br.append(" ") br.append br " " System.out.println(br) System.out.println System.out System System.out br String[] age age public class Main {
	public static void main(String[] age)throws IOException{
		BufferedReader sb = new BufferedReader(new InputStreamReader(System.in));
		String input = sb.readLine();
		int g = Integer.parseInt(input);
		int i = 0;
		int j = 0;
		int t = 0;
		String[] reinput = sb.readLine().split(" ");
		StringBuffer br = new StringBuffer();
		int[] sainput = new int[g];

		for( i=0 ; i<g ; i++ ){
			sainput[i] = Integer.parseInt(reinput[i]);
		}

		g--;
		j = g;

		if(g%2==1){
			for( i=0 ; i<=j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		}else{
			for( i=0 ; i<j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		}

		for( i=0 ; i<=j ; i++){
			br.append(sainput[i]);
			if( i==j ) break;
			br.append(" ");
		}
		System.out.println(br);
	}
} public class Main {
	public static void main(String[] age)throws IOException{
		BufferedReader sb = new BufferedReader(new InputStreamReader(System.in));
		String input = sb.readLine();
		int g = Integer.parseInt(input);
		int i = 0;
		int j = 0;
		int t = 0;
		String[] reinput = sb.readLine().split(" ");
		StringBuffer br = new StringBuffer();
		int[] sainput = new int[g];

		for( i=0 ; i<g ; i++ ){
			sainput[i] = Integer.parseInt(reinput[i]);
		}

		g--;
		j = g;

		if(g%2==1){
			for( i=0 ; i<=j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		}else{
			for( i=0 ; i<j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		}

		for( i=0 ; i<=j ; i++){
			br.append(sainput[i]);
			if( i==j ) break;
			br.append(" ");
		}
		System.out.println(br);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] age)throws IOException{
		BufferedReader sb = new BufferedReader(new InputStreamReader(System.in));
		String input = sb.readLine();
		int g = Integer.parseInt(input);
		int i = 0;
		int j = 0;
		int t = 0;
		String[] reinput = sb.readLine().split(" ");
		StringBuffer br = new StringBuffer();
		int[] sainput = new int[g];

		for( i=0 ; i<g ; i++ ){
			sainput[i] = Integer.parseInt(reinput[i]);
		}

		g--;
		j = g;

		if(g%2==1){
			for( i=0 ; i<=j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		}else{
			for( i=0 ; i<j/2 ; i++ ){
					t = sainput[i];
					sainput[i]=sainput[g];
					sainput[g]=t;
					g--;
			}
		}

		for( i=0 ; i<=j ; i++){
			br.append(sainput[i]);
			if( i==j ) break;
			br.append(" ");
		}
		System.out.println(br);
	}
}