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