#include <bits/stdc++.h>
using namespace std;
int n;
char a[1 << 9][1 << 9];
void solve(int n) {
  if (n == 0) {
    a[0][0] = '+';
    return;
  }
  solve(n - 1);
  int mid = 1 << (n - 1);
  for (int i = (mid), _b = ((1 << n) - 1); i <= _b; ++i)
    for (int j = 0, _a = (mid); j < _a; ++j) a[i][j] = a[i - mid][j];
  for (int i = 0, _a = (mid); i < _a; ++i)
    for (int j = (mid), _b = ((1 << n) - 1); j <= _b; ++j)
      a[i][j] = a[i][j - mid];
  for (int i = (mid), _b = ((1 << n) - 1); i <= _b; ++i)
    for (int j = (mid), _b = ((1 << n) - 1); j <= _b; ++j)
      a[i][j] = '+' + '*' - a[i - mid][j - mid];
}
int main() {
  ios ::sync_with_stdio(0);
  cin.tie(0);
  while (cin >> n) {
    solve(n);
    for (int i = 0, _a = (1 << n); i < _a; ++i) {
      for (int j = 0, _a = (1 << n); j < _a; ++j) putchar(a[i][j]);
      puts("");
    }
  }
}
