#include <bits/stdc++.h>
char s[520][520];
char q[520][520];
int main() {
  int n, m;
  scanf("%d", &n);
  memset(s, '\0', sizeof(s));
  memset(q, '\0', sizeof(q));
  q[1][1] = '+', q[1][2] = '+', q[2][1] = '+', q[2][2] = '*';
  s[1][1] = '+', s[1][2] = '+', s[2][1] = '+', s[2][2] = '*';
  m = 2;
  if (n == 0)
    printf("+\n");
  else {
    while (--n) {
      for (int i = 1; i <= m; ++i)
        for (int j = 1; j <= m; ++j)
          s[i][j] = q[i][j], s[i + m][j] = q[i][j], s[i][j + m] = q[i][j],
          s[i + m][j + m] = q[i][j] == '+' ? '*' : '+';
      for (int i = 1; i <= m * 2; ++i)
        for (int j = 1; j <= m * 2; ++j) q[i][j] = s[i][j];
      m *= 2;
    }
    for (int i = 1; i <= m; ++i) printf("%s\n", s[i] + 1);
  }
}
