#include <bits/stdc++.h>
using namespace std;
int i, j, k, n, m, a[611][611];
int main() {
  scanf("%d", &n);
  a[1][1] = 1;
  m = 1;
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= m; j++)
      for (k = 1; k <= m; k++) a[j + m][k] = a[j][k];
    for (j = 1; j <= m; j++)
      for (k = 1; k <= m; k++) a[j][k + m] = a[j][k];
    for (j = m + 1; j <= 2 * m; j++)
      for (k = m + 1; k <= 2 * m; k++) a[j][k] = a[j - m][k] ^ 1;
    m *= 2;
  }
  for (i = 1; i <= m; i++) {
    for (j = 1; j <= m; j++) putchar(a[i][j] ? '+' : '*');
    puts("");
  }
  return 0;
}
