import java.util.*;
public class Main
{
public static void main(String[] args)
{
System.out.print("Enter a number: ");
int n = Integer.parseInt(new Scanner(System.in).nextLine());
System.out.print("Enter the desired width: ");
int width = Integer.parseInt(new Scanner(System.in).nextLine());
int height = width;
for (int row = 0; row < height; row++)
{
for (int column = 0; column < width; column++)
{
System.out.print(n);
}
System.out.println();
width--;
}
}
}