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