#include <iostream>
using namespace std;
const int LIM = 100;
bool isEmpty(int k) {
if(k == 0)
return true;
return false;
}
void push(int coada[], int &k, int numar) {
k = k + 1;
coada[k] = numar;
}
int main() {
int coada[LIM], k = 0, n;
cin>>n;
for(int i=1;i<=n;i++) if (i%n==0) push(coada, k, i);
for(int i=1;i<=LIM;i++) cout<<coada[i]<<' ';
return 0;
}