include[HTML_REMOVED]
using namespace std;
int main(){
int n;
while(1){
cin>>n;
if(n==0) break;
for(int i=1;i<=n;i++){
if(i!=n)
cout<<i<<” “;
else cout<<i;
}
cout<<endl;
}
return 0;
}