#include <bits/stdc++.h>
using namespace std;
int n;
char a[1300][1300];
void solve() {
  scanf("%d", &n);
  a[1][1] = '+';
  int sz = 1;
  for (int rnd = 1; rnd <= n; ++rnd) {
    for (int i = 1; i <= sz; ++i) {
      for (int j = 1; j <= sz; ++j) {
        if (a[i][j] == '+') {
          a[i + sz][j] = a[i][j + sz] = '+';
          a[i + sz][j + sz] = '*';
        } else {
          a[i + sz][j] = a[i][j + sz] = '*';
          a[i + sz][j + sz] = '+';
        }
      }
    }
    sz <<= 1;
  }
  for (int i = 1; i <= sz; ++i) {
    for (int j = 1; j <= sz; ++j) {
      printf("%c", a[i][j]);
    }
    printf("\n");
  }
}
int main() {
  solve();
  return 0;
}
