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