include [HTML_REMOVED]
using namespace std;
define ll long long
int main()
{
ll o;
while(1)
{
ll x;
cin>>x;
for(o=1;o<x;o++)
{
if(x==0) break;
cout<<o<<” “;
}
if(x!=0){
cout<<x<<endl;
}
}
return 0;
}