#include <bits/stdc++.h>
using namespace std;
const int N = 1024;
char sol[N][N];
int n;
void rewrite(int m) {
  int k = m / 2;
  for (int i = 0; i < k; i++) {
    for (int j = 0; j < k; j++) {
      sol[i + k][j] = sol[i][j];
      sol[i][j + k] = sol[i][j];
    }
  }
  for (int i = 0; i < k; i++) {
    for (int j = 0; j < k; j++) {
      if (sol[i][j] == '*')
        sol[i + k][j + k] = '+';
      else
        sol[i + k][j + k] = '*';
    }
  }
}
void finish() {
  int LIM = 1 << n;
  for (int i = 0; i < LIM; i++) {
    for (int j = 0; j < LIM; j++) {
      printf("%c", sol[i][j]);
    }
    printf("\n");
  }
}
int main() {
  scanf("%d", &n);
  sol[0][0] = '+';
  for (int i = 1; i <= n; i++) rewrite((int)(1 << i));
  finish();
  return 0;
}
