#include<iostream> using namespace std; int main(){ int x; while(cin>>x,x){ //,表示看后面的真值 for(int i=1;i<=x;i++)cout<<i<<" "; cout<<endl; } return 0; }