#include<cstdio>
int main(){
int a;
scanf("%d",&a);
for (int i = 1; i <= a; i++){
for (int j = 1; j <= a - i; j++){
printf("_");
}
for (int j = 1; j <= i; j++){
printf("*");
}
printf("\n");
}
return 0;
}