#include <bits/stdc++.h>
using namespace std;
int k, n = 1;
int a[520][520];
int main() {
  ios_base::sync_with_stdio(false);
  cin >> k;
  a[1][1] = 1;
  int i, x, y;
  for (i = 1; i <= k; i++) {
    for (x = 1; x <= n; x++)
      for (y = 1; y <= n; y++) {
        a[x + n][y] = a[x][y];
        a[x][y + n] = a[x][y];
        a[x + n][y + n] = -a[x][y];
      }
    n *= 2;
  }
  for (x = 1; x <= n; x++) {
    for (y = 1; y <= n; y++)
      if (a[x][y] == 1)
        cout << "+";
      else
        cout << "*";
    cout << endl;
  }
  return 0;
}
