#include <bits/stdc++.h>
using namespace std;
string s[1000];
int p[10];
int main() {
  p[0] = 1, p[1] = 2, p[2] = 4, p[3] = 8, p[4] = 16, p[5] = 32;
  p[6] = 64, p[7] = 128, p[8] = 256, p[9] = 512;
  s[1] = "++**";
  s[2] = "+*+*";
  s[3] = "++++";
  s[4] = "+**+";
  for (int i = 3; i <= 9; i++) {
    for (int j = p[i] / 2 + 1; j <= p[i]; j++) s[j] = s[p[i] - j + 1];
    for (int j = 1; j <= p[i]; j++) s[j] = s[j] + s[j];
    for (int j = p[i] / 2 + 1; j <= p[i]; j++) {
      int kk = 0;
      for (int k = p[i] / 2; k < p[i]; k++) {
        if (s[j][kk] == '+')
          s[j][k] = '*';
        else
          s[j][k] = '+';
        kk++;
      }
    }
  }
  int n;
  while (scanf("%d", &n) != EOF) {
    if (n == 0)
      printf("+\n");
    else if (n == 1)
      printf("+*\n++\n");
    else {
      for (int i = 1; i <= p[n]; i++) {
        for (int j = 0; j < p[n]; j++) {
          printf("%c", s[i][j]);
        }
        printf("\n");
      }
    }
  }
  return 0;
}
