import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int n, i, j, temp = 0;
		Scanner stdin = new Scanner(System.in);
		n = stdin.nextInt();		
		int a[] = new int[1000];
		for (i = 0; i < n; i++) {
			a[i] = stdin.nextInt();
		}
		j = i - 1;
		i = 0;
		while (i < j) {
			temp = a[i];
			a[i] = a[j];
			a[j] = temp;
			i++;
			j--;
		}
		for (i = 0; i < n; i++) {
			if(i == n-1) {
				System.out.println(a[i]);
			}else {
				System.out.print(a[i]+" ");
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		int n, i, j, temp = 0;
		Scanner stdin = new Scanner(System.in);
		n = stdin.nextInt();		
		int a[] = new int[1000];
		for (i = 0; i < n; i++) {
			a[i] = stdin.nextInt();
		}
		j = i - 1;
		i = 0;
		while (i < j) {
			temp = a[i];
			a[i] = a[j];
			a[j] = temp;
			i++;
			j--;
		}
		for (i = 0; i < n; i++) {
			if(i == n-1) {
				System.out.println(a[i]);
			}else {
				System.out.print(a[i]+" ");
			}
		}
	}
} Main public static void main(String[] args) {
		int n, i, j, temp = 0;
		Scanner stdin = new Scanner(System.in);
		n = stdin.nextInt();		
		int a[] = new int[1000];
		for (i = 0; i < n; i++) {
			a[i] = stdin.nextInt();
		}
		j = i - 1;
		i = 0;
		while (i < j) {
			temp = a[i];
			a[i] = a[j];
			a[j] = temp;
			i++;
			j--;
		}
		for (i = 0; i < n; i++) {
			if(i == n-1) {
				System.out.println(a[i]);
			}else {
				System.out.print(a[i]+" ");
			}
		}
	} main {
		int n, i, j, temp = 0;
		Scanner stdin = new Scanner(System.in);
		n = stdin.nextInt();		
		int a[] = new int[1000];
		for (i = 0; i < n; i++) {
			a[i] = stdin.nextInt();
		}
		j = i - 1;
		i = 0;
		while (i < j) {
			temp = a[i];
			a[i] = a[j];
			a[j] = temp;
			i++;
			j--;
		}
		for (i = 0; i < n; i++) {
			if(i == n-1) {
				System.out.println(a[i]);
			}else {
				System.out.print(a[i]+" ");
			}
		}
	} int n n i i j j temp = 0; temp 0 Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) n = stdin.nextInt() n stdin.nextInt() stdin.nextInt stdin int a[] = new int[1000]; a new int[1000] 1000 for (i = 0; i < n; i++) {
			a[i] = stdin.nextInt();
		} i = 0; i = 0 i 0 i < n i n i++ i++ i {
			a[i] = stdin.nextInt();
		} {
			a[i] = stdin.nextInt();
		} a[i] = stdin.nextInt() a[i] a i stdin.nextInt() stdin.nextInt stdin j = i - 1 j i - 1 i 1 i = 0 i 0 while (i < j) {
			temp = a[i];
			a[i] = a[j];
			a[j] = temp;
			i++;
			j--;
		} i < j i j {
			temp = a[i];
			a[i] = a[j];
			a[j] = temp;
			i++;
			j--;
		} temp = a[i] temp a[i] a i a[i] = a[j] a[i] a i a[j] a j a[j] = temp a[j] a j temp i++ i j-- j for (i = 0; i < n; i++) {
			if(i == n-1) {
				System.out.println(a[i]);
			}else {
				System.out.print(a[i]+" ");
			}
		} i = 0; i = 0 i 0 i < n i n i++ i++ i {
			if(i == n-1) {
				System.out.println(a[i]);
			}else {
				System.out.print(a[i]+" ");
			}
		} {
			if(i == n-1) {
				System.out.println(a[i]);
			}else {
				System.out.print(a[i]+" ");
			}
		} if(i == n-1) {
				System.out.println(a[i]);
			}else {
				System.out.print(a[i]+" ");
			} i == n-1 i n-1 n 1 {
				System.out.println(a[i]);
			} System.out.println(a[i]) System.out.println System.out System System.out a[i] a i {
				System.out.print(a[i]+" ");
			} System.out.print(a[i]+" ") System.out.print System.out System System.out a[i]+" " a[i] a i " " String[] args args public class Main {

	public static void main(String[] args) {
		int n, i, j, temp = 0;
		Scanner stdin = new Scanner(System.in);
		n = stdin.nextInt();		
		int a[] = new int[1000];
		for (i = 0; i < n; i++) {
			a[i] = stdin.nextInt();
		}
		j = i - 1;
		i = 0;
		while (i < j) {
			temp = a[i];
			a[i] = a[j];
			a[j] = temp;
			i++;
			j--;
		}
		for (i = 0; i < n; i++) {
			if(i == n-1) {
				System.out.println(a[i]);
			}else {
				System.out.print(a[i]+" ");
			}
		}
	}
} public class Main {

	public static void main(String[] args) {
		int n, i, j, temp = 0;
		Scanner stdin = new Scanner(System.in);
		n = stdin.nextInt();		
		int a[] = new int[1000];
		for (i = 0; i < n; i++) {
			a[i] = stdin.nextInt();
		}
		j = i - 1;
		i = 0;
		while (i < j) {
			temp = a[i];
			a[i] = a[j];
			a[j] = temp;
			i++;
			j--;
		}
		for (i = 0; i < n; i++) {
			if(i == n-1) {
				System.out.println(a[i]);
			}else {
				System.out.print(a[i]+" ");
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int n, i, j, temp = 0;
		Scanner stdin = new Scanner(System.in);
		n = stdin.nextInt();		
		int a[] = new int[1000];
		for (i = 0; i < n; i++) {
			a[i] = stdin.nextInt();
		}
		j = i - 1;
		i = 0;
		while (i < j) {
			temp = a[i];
			a[i] = a[j];
			a[j] = temp;
			i++;
			j--;
		}
		for (i = 0; i < n; i++) {
			if(i == n-1) {
				System.out.println(a[i]);
			}else {
				System.out.print(a[i]+" ");
			}
		}
	}
}