#include <iostream>
#include <stdio.h>
#include <iomanip>
#include <string>
 
using namespace std;
 
int main(void){
    int n;
    scanf("%d",&n);
    int* a = new int[n];
    for (int i = 0; i < n; i++) {
        cin >> a[i];
    }
    cout << a[n - 1];
    for (int i = 1; i < n; i++) {
        cout << " " << a[n - i - 1];
    }
    cout << endl;
    delete[] a;
    return 0;
}
#include<iostream>

const static int MIN = -1000000;
const static int MAX = 1000000;

int main(void){
    int k, x;
    std::cin >> k >> x;
    int cmax = std::min(MAX, x + k - 1);
    int cmin = std::max(MIN, x - k + 1);
    for(int i = cmin; i <= cmax; i++){
        std::cout << i << " ";
    }
    std::cout << std::endl;
    return 0;
}