#include <bits/stdc++.h>
using namespace std;
int K;
int V[1024][1024];
int main() {
  cin >> K;
  if (K == 0) {
    cout << "+\n";
    return 0;
  }
  V[1][1] = 1;
  V[1][2] = 1;
  V[2][1] = 1;
  V[2][2] = -1;
  for (int T = 2; T <= K; ++T) {
    int pMic = 1 << (T - 1);
    int pMare = 1 << T;
    for (int i = pMic + 1; i <= pMare; ++i)
      for (int j = 1; j <= pMic; ++j) V[i][j] = V[i - pMic][j];
    for (int i = 1; i <= pMic; ++i)
      for (int j = pMic + 1; j <= pMare; ++j) V[i][j] = V[i][j - pMic];
    for (int i = pMic + 1; i <= pMare; ++i)
      for (int j = pMic + 1; j <= pMare; ++j) V[i][j] = -1 * V[i][j - pMic];
  }
  for (int i = 1; i <= (1 << K); ++i) {
    for (int j = 1; j <= (1 << K); ++j) {
      if (V[i][j] == 1)
        cout << '+';
      else
        cout << '*';
    }
    cout << '\n';
  }
  return 0;
}
