#include <stdio.h>
int print(int n) {
    static  int k = 1;
    for (int i = 0; i < k; i++) {
        printf("* ");
    }
    printf("\n");
    k++;
    if (k != n + 1) {
        return print(n);
    } else {
        k = 1;
        return 0;
    }
}
int main() {
    int n;

    while (scanf("%d", &n) != EOF) {
        int c = print(n);
    }
    return 0;
}