#include<iostream>
using namespace std;
int main()
{
int i,j,n,s=0,k=1,z=0,x;
cin>>n;
for(i=1;i<=n;i=i+2)
if(s<n)
{
s=s+i;
z++;
k=k+2;
}
x=k-2;
k=1;
if(s!=n)
cout<<"!!FATAL ERROR!!";
else
for(i=1;i<=z;i++)
{
for(j=1;j<=x;j++)
{
if(j>x-k)
cout<<"*";
else
cout<<" ";
}
k=k+2;
cout<<endl;
}
}