#include <iostream> using namespace std; int main(void) { int n; cin >> n; while (n) { for (int i = 1; i <= n; i++) cout << i << ' '; cout << endl; cin >> n; } return 0; }