#include <bits/stdc++.h>
using namespace std;
const long long N = (long long)(5e5) + 322;
const long long INF = (long long)(1e9);
const long long mod = (long long)(1e9) + 7;
const double eps = 1e-9;
long long n;
int ch[(1 << 10)][(1 << 10)];
void build(int x) {
  if (x == 10) return;
  int q = (1 << (x - 1));
  for (int i = 1; i <= q; ++i) {
    for (int j = 1; j <= q; ++j) {
      ch[i + q][j] = ch[i][j];
      ch[i][j + q] = ch[i][j];
      ch[i + q][j + q] = ch[i][j] ^ 1;
    }
  }
  build(x + 1);
}
int main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  n = (1 << n);
  ch[1][1] = 1;
  build(1);
  for (int i = 1; i <= n; ++i) {
    for (int j = 1; j <= n; ++j) {
      if (ch[i][j]) {
        cout << '+';
      } else {
        cout << '*';
      }
    }
    cout << "\n";
  }
  return 0;
}
