#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, sizeA;
  char a[10][512][512];
  a[0][0][0] = 1;
  cin >> k;
  for (int i = 1; i <= k; i++) {
    int temp = pow(2, i);
    int temp2 = pow(2, i - 1);
    for (int j = 0; j < temp; j++) {
      for (int v = 0; v < temp; v++) {
        int t1 = v % temp2;
        int t2 = j % temp2;
        a[i][j][v] = a[i - 1][t1][t2];
      }
    }
    for (int j = temp / 2; j < temp; j++) {
      for (int v = temp / 2; v < temp; v++) {
        a[i][j][v] = -1 * a[i][j][v];
      }
    }
  }
  int temp = pow(2, k);
  for (int i = 0; i < temp; i++) {
    for (int j = 0; j < temp; j++) {
      if (a[k][i][j] == 1) cout << "+";
      if (a[k][i][j] == -1) cout << "*";
    }
    cout << "\n";
  }
  return 0;
}
