#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:1024000000,1024000000")
using namespace std;
int a[512 + 10][512 + 10];
int main() {
  a[1][1] = 1;
  for (int k = 1; k <= 256; k <<= 1) {
    for (int i = 1; i <= k; i++) {
      for (int j = 1; j <= k; j++) {
        a[i][k + j] = a[k + i][j] = a[i][j];
        a[i + k][j + k] = -a[i][j];
      }
    }
  }
  int n;
  scanf("%d", &n);
  n = 1 << n;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++)
      if (a[i][j] == 1)
        printf("+");
      else
        printf("*");
    printf("\n");
  }
  return 0;
}
