import java.io.*;

public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        int count = Integer.parseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        int[] num = new int[count];
        for(int i=0; i<count; i++){
            num[i] = Integer.parseInt(str[i]);
        }

        for(int i=0; i < count/2; i++){
            int k = count - (i+1);
            int swp = num[i];
            num[i] = num[k];
            num[k] = swp;
        }
        for(int i=0; i<count-1; i++){
            sb.append(num[i]).append(" ");
        }
        sb.append(num[count-1]);
        System.out.println(sb);

    }
} import java.io.*; io.* java public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        int count = Integer.parseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        int[] num = new int[count];
        for(int i=0; i<count; i++){
            num[i] = Integer.parseInt(str[i]);
        }

        for(int i=0; i < count/2; i++){
            int k = count - (i+1);
            int swp = num[i];
            num[i] = num[k];
            num[k] = swp;
        }
        for(int i=0; i<count-1; i++){
            sb.append(num[i]).append(" ");
        }
        sb.append(num[count-1]);
        System.out.println(sb);

    }
} Main public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        int count = Integer.parseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        int[] num = new int[count];
        for(int i=0; i<count; i++){
            num[i] = Integer.parseInt(str[i]);
        }

        for(int i=0; i < count/2; i++){
            int k = count - (i+1);
            int swp = num[i];
            num[i] = num[k];
            num[k] = swp;
        }
        for(int i=0; i<count-1; i++){
            sb.append(num[i]).append(" ");
        }
        sb.append(num[count-1]);
        System.out.println(sb);

    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        int count = Integer.parseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        int[] num = new int[count];
        for(int i=0; i<count; i++){
            num[i] = Integer.parseInt(str[i]);
        }

        for(int i=0; i < count/2; i++){
            int k = count - (i+1);
            int swp = num[i];
            num[i] = num[k];
            num[k] = swp;
        }
        for(int i=0; i<count-1; i++){
            sb.append(num[i]).append(" ");
        }
        sb.append(num[count-1]);
        System.out.println(sb);

    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int count = Integer.parseInt(br.readLine()); count Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String[] str = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int[] num = new int[count]; num new int[count] count for(int i=0; i<count; i++){
            num[i] = Integer.parseInt(str[i]);
        } int i=0; int i=0; i 0 i<count i count i++ i++ i {
            num[i] = Integer.parseInt(str[i]);
        } {
            num[i] = Integer.parseInt(str[i]);
        } num[i] = Integer.parseInt(str[i]) num[i] num i Integer.parseInt(str[i]) Integer.parseInt Integer str[i] str i for(int i=0; i < count/2; i++){
            int k = count - (i+1);
            int swp = num[i];
            num[i] = num[k];
            num[k] = swp;
        } int i=0; int i=0; i 0 i < count/2 i count/2 count 2 i++ i++ i {
            int k = count - (i+1);
            int swp = num[i];
            num[i] = num[k];
            num[k] = swp;
        } {
            int k = count - (i+1);
            int swp = num[i];
            num[i] = num[k];
            num[k] = swp;
        } int k = count - (i+1); k count - (i+1) count (i+1) i 1 int swp = num[i]; swp num[i] num i num[i] = num[k] num[i] num i num[k] num k num[k] = swp num[k] num k swp for(int i=0; i<count-1; i++){
            sb.append(num[i]).append(" ");
        } int i=0; int i=0; i 0 i<count-1 i count-1 count 1 i++ i++ i {
            sb.append(num[i]).append(" ");
        } {
            sb.append(num[i]).append(" ");
        } sb.append(num[i]).append(" ") sb.append(num[i]).append sb.append(num[i]) sb.append sb num[i] num i " " sb.append(num[count-1]) sb.append sb num[count-1] num count-1 count 1 System.out.println(sb) System.out.println System.out System System.out sb String[]args args public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        int count = Integer.parseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        int[] num = new int[count];
        for(int i=0; i<count; i++){
            num[i] = Integer.parseInt(str[i]);
        }

        for(int i=0; i < count/2; i++){
            int k = count - (i+1);
            int swp = num[i];
            num[i] = num[k];
            num[k] = swp;
        }
        for(int i=0; i<count-1; i++){
            sb.append(num[i]).append(" ");
        }
        sb.append(num[count-1]);
        System.out.println(sb);

    }
} public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        int count = Integer.parseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        int[] num = new int[count];
        for(int i=0; i<count; i++){
            num[i] = Integer.parseInt(str[i]);
        }

        for(int i=0; i < count/2; i++){
            int k = count - (i+1);
            int swp = num[i];
            num[i] = num[k];
            num[k] = swp;
        }
        for(int i=0; i<count-1; i++){
            sb.append(num[i]).append(" ");
        }
        sb.append(num[count-1]);
        System.out.println(sb);

    }
} Main
import java.io.*;

public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        int count = Integer.parseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        int[] num = new int[count];
        for(int i=0; i<count; i++){
            num[i] = Integer.parseInt(str[i]);
        }

        for(int i=0; i < count/2; i++){
            int k = count - (i+1);
            int swp = num[i];
            num[i] = num[k];
            num[k] = swp;
        }
        for(int i=0; i<count-1; i++){
            sb.append(num[i]).append(" ");
        }
        sb.append(num[count-1]);
        System.out.println(sb);

    }
}