#include <bits/stdc++.h>
int k, q, x, cc = '+' + '*';
char c[513][513];
int main() {
  scanf("%d", &k);
  q = 1 << k;
  for (int i = 1; i <= q; i++) {
    c[1][i] = '+';
  }
  for (int i = 0; i < k; i++) {
    for (int j = 1; j <= 1 << i; j++) {
      for (int l = 1; l <= 1 << i; l++) {
        x = (l - 1) * (q >> i);
        for (int m = 1; m <= q >> (i + 1); m++) {
          c[j + (1 << i)][x + m] = c[j][x + m];
          c[j + (1 << i)][x + m + (q >> (i + 1))] =
              cc - c[j][x + m + (q >> (i + 1))];
        }
      }
    }
  }
  for (int i = 1; i <= q; i++) {
    for (int j = 1; j <= q; j++) {
      printf("%c", c[i][j]);
    }
    printf("\n");
  }
  return 0;
}
