#include <iostream> #include <stdio.h> int main() { int n; while (scanf("%d", &n), n) { for (int i = 1; i <= n; i++) { printf("%d ", i); } printf("\n"); } }