#include <iostream>

int main()
{
  using namespace std;
  
  int width, height;
  
  cout << "縦 = ";
  cin >> height;
  
  cout << "横 = ";
  cin >> width;
  
  for ( int y = 0; y < height; y ++ )
  {
    for ( int x = 0; x < width; x ++ )
      cout << "*";
    
    cout << endl;
  }
  
  return 0;
}