#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
for(int i = 0 ; ; i++)
{
int X = 0;
cin >> X ;
if(X == 0) break;
else
for(int j = 1; j <= X; j++)
{
cout << j << " ";
}
cout << endl;
}
return 0;
}