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