#include <bits/stdc++.h>
using namespace std;
const int MAX = 1050;
int k;
int a[MAX][MAX];
void mprint(int a[MAX][MAX], int M) {
  for (int i = 0; i < M; ++i) {
    for (int j = 0; j < M; ++j) {
      if (a[i][j])
        cout << "+";
      else
        cout << "*";
    }
    cout << "\n";
  }
}
void hadam_rec(int a[MAX][MAX], int m, int M) {
  if (m < M) {
    for (int i = 0; i < m; ++i) {
      for (int j = 0; j < m; ++j) {
        a[i + m][j] = a[i][j];
        a[i][j + m] = a[i][j];
        a[i + m][j + m] = !a[i][j];
      }
    }
    hadam_rec(a, 2 * m, M);
  }
}
void solve() {
  cin >> k;
  int m = 1;
  int M = 1 << k;
  a[0][0] = 1;
  hadam_rec(a, m, M);
  mprint(a, M);
}
int main() {
  ios_base::sync_with_stdio(false);
  solve();
  return 0;
}
