#include
using namespace std;
int main(){
int n;
cin>>n;
int row=1;
while(row<=n)
{
int col=1;
if(row<=n){
while(col<=row){
cout<<col;
col++;
}
for(int i=0;i<=n;i++){
cout<<"*";
}
}
cout<<endl;
row=row+1;
}
return 0;
}