/*************************************************
 Write a program that takes two integers
 m and n and prints out m parentheses each 
 containing n stars. In addition, a bracket
 shoule enclose all of them. 

 For example, if the input is 
 3 4 
 The program should print out 
 [(****)(****)(****)]

 You are not allowed to use any if statements. 
*************************************************/


#include <iostream>
using namespace std;

int main()
{
  int m, n;
  cin >> m >> n;

  cout << "[";
  for(int i=0; i<m; i++)
  {
    cout << "(";
    for(int j=0; j<n; j++)
      cout << "*";
    cout << ")";
  }
  cout << "]" << endl;

  return 0;
}