#include<iostream>
using namespace std;
int main() {
int a[110], n;
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> a[i];
}
for (int i = n; i >= 1; i--) {
a[i + 1] = a[i];
}
a[1] = a[n + 1];
for (int i = 1; i <= n; i++) {
cout << a[i] << " ";
}
return 0;
}