#include
using namespace std;
int main()
{
int n;
cin>>n;
if(n>0 && n<100)
{
for(int i=1;i<=n;i++)
{
for(int j=1;j<=i;j++)
{
if((j==1)||(j==i))
{
cout<<i;
}
else
{
cout<<"0"; // u have use different set of inverted commas
}
}
cout<<endl;
}
}
else
{
cout<<"negative";
}
return 0;
}