#include <stdio.h>
 
int main(int argc, const char * argv[])
{
    for (int i = 0; i < 3; i++) {
        for (int j = 2-i; j > 0; j--) {
            printf(" ");
        }
        for (int k = i*2+1; k>0; k--) {
            printf("*");
        }
        printf("\n");
    }
    return 0;
}