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