#include <bits/stdc++.h>
using namespace std;
int g[1024][1024];
void init(int m) {
  int half = m >> 1;
  if (half > 1) {
    init(half);
    for (int i = 1; i <= half; i++) {
      for (int j = 1; j <= half; j++) {
        g[i + half][j] = g[i][j + half] = g[i][j];
        g[i + half][j + half] = -g[i][j];
      }
    }
  }
}
int main() {
  int k;
  g[1][1] = g[1][2] = g[2][1] = 1;
  g[2][2] = -1;
  cin >> k;
  init(1 << k);
  for (int i = 1; i <= 1 << k; i++) {
    for (int j = 1; j <= 1 << k; j++) {
      if (g[i][j] == 1) {
        printf("+");
      } else {
        printf("*");
      }
    }
    printf("\n");
  }
  return 0;
}
