#include <bits/stdc++.h>
using namespace std;
int k;
char a[620][620];
int main() {
  ios_base::sync_with_stdio(false);
  cin >> k;
  if (k == 1) {
    cout << "++" << endl << "+*";
    return 0;
  }
  a[1][1] = a[1][2] = a[2][1] = '+';
  a[2][2] = '*';
  for (int i = 2; i <= k; i++) {
    int hs = (1 << (i - 1));
    for (int xi = hs + 1; xi <= 2 * hs; xi++)
      for (int xj = 1; xj <= hs; xj++) a[xi][xj] = a[xi - hs][xj];
    for (int xi = hs + 1; xi <= 2 * hs; xi++) {
      int cnt = 1;
      for (int xj = 1; xj <= hs; xj++)
        a[xi][2 * hs - cnt + 1] = a[xi][xj], cnt++;
    }
    for (int xi = 1; xi <= hs; xi++) {
      int cnt = 1;
      for (int xj = 1; xj <= hs; xj++)
        a[xi][2 * hs - cnt + 1] = a[xi][xj], cnt++;
    }
    for (int xi = 1; xi <= hs; xi++) {
      for (int xj = hs + 1; xj <= 2 * hs; xj++)
        if (a[xi][xj] == '+')
          a[xi][xj] = '*';
        else
          a[xi][xj] = '+';
    }
  }
  int sl = (1 << k);
  for (int i = 1; i <= sl; i++) {
    for (int j = 1; j <= sl; j++) cout << a[i][j];
    cout << endl;
  }
  return 0;
}
