#include <iostream>
using namespace std;
void reverse(int a[],int size);
int main(void) {
    int n,size;
    cin >> n >> size;
    int a[n];
    for(int i = 0;i < n;i++) {
        cin >> a[i];
    }
    reverse(a,size);
    for(int i = 0;i<n;i++){
        cout << a[i] <<' ';
    }
}
void reverse(int a[],int size){
    for(int i = 0,j = size - 1;i<j;i++,j--) {
        int temp = a[i];
        a[i] = a[j];
        a[j] = temp;
    }
}