#include <bits/stdc++.h>
const int N = 510000;
using namespace std;
int n;
vector<vector<int> > had[20];
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  had[0].resize(1);
  had[0][0].push_back(1);
  for (int i = 1; i <= 9; i++) {
    had[i].resize(1 << i);
    int sz = (1 << i);
    sz /= 2;
    for (int j = 0; j < (1 << i); j++) {
      had[i][j].resize(1 << i);
      for (int q = 0; q < (1 << i); q++) {
        had[i][j][q] = had[i - 1][j % sz][q % sz];
        if (j >= sz && q >= sz) had[i][j][q] ^= 1;
      }
    }
  }
  for (int i = 0; i < (1 << n); i++) {
    for (int j = 0; j < (1 << n); j++) {
      if (had[n][i][j])
        cout << "+";
      else
        cout << "*";
    }
    cout << endl;
  }
  cin.get();
  cin.get();
  return 0;
}
