import java.util.Scanner;
public class Practice{
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scn= new Scanner(System.in);
int n = 10001;
while (n >1000) {
System.out.println("Enter an integer " +
"with in range 0-1000");
n = scn.nextInt();
}
int nst = 1;
for(int row=1; row<=n ; row++)
{
for(int star=1; star<=nst; star++)
{ if(star==1 || star ==nst)
System.out.print(row);
else
System.out.print("0");
}
System.out.print("\n");
nst++;
}
}
}