#include <bits/stdc++.h>
using namespace std;
int A[512][512];
void fun(int n, int m, int k, int s) {
  int i, j, x, y;
  for (i = 0, x = n; i < k; i++, x++) {
    for (j = 0, y = m; j < k; j++, y++) A[x][y] = s * A[i][j];
  }
}
int main() {
  int n, k, i, j, m;
  n = 1;
  A[0][0] = 1;
  cin >> m;
  while (m--) {
    fun(0, n, n, 1);
    fun(n, 0, n, 1);
    fun(n, n, n, -1);
    n *= 2;
  }
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++)
      if (A[i][j] == 1)
        putchar('+');
      else
        putchar('*');
    putchar('\n');
  }
  return 0;
}
