#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
int main()
{
int num=1;
while(num !=0)
{
cin >> num;
for (int j = 1; j <=num; j ++ )
{
cout << j << " ";
}
if(num!=0) cout << endl;
}
}