#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool fs(T &x) {
  int c = getchar();
  int sgn = 1;
  while (~c && c < '0' || c > '9') {
    if (c == '-') sgn = -1;
    c = getchar();
  }
  for (x = 0; ~c && '0' <= c && c <= '9'; c = getchar()) x = x * 10 + c - '0';
  x *= sgn;
  return ~c;
}
int ara[600][600];
void boshao(int n) {
  int ln = n * 2;
  for (int i = 1; i <= n; i++)
    for (int j = n + 1; j <= ln; j++) ara[i][j] = ara[i][j - n];
  for (int j = 1; j <= n; j++)
    for (int i = n + 1; i <= ln; i++) ara[i][j] = ara[i - n][j];
  for (int j = n + 1; j <= ln; j++)
    for (int i = n + 1; i <= ln; i++) ara[i][j] = ara[i - n][j - n] ^ 1;
}
int main() {
  ara[1][1] = 1;
  ara[1][2] = 1;
  ara[2][1] = 1;
  ara[2][2] = 0;
  int n;
  fs(n);
  int x = 2;
  for (int i = 2; i <= 9; i++) {
    boshao(x);
    x *= 2;
  }
  for (int i = 1; i <= (1 << n); i++) {
    for (int j = 1; j <= (1 << n); j++) cout << ((ara[i][j]) ? '*' : '+');
    cout << endl;
  }
  return 0;
}
