#include <bits/stdc++.h>
using namespace std;
char a[1 << 9][1 << 9];
void solve(int n) {
  if (n == 0) {
    a[0][0] = '+';
    return;
  }
  solve(n - 1);
  n = 1 << (n - 1);
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) {
      a[i + n][j] = a[i][j + n] = a[i][j];
      a[i + n][j + n] = '+' + '*' - a[i][j];
    }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  solve(n);
  for (int i = 0; i < 1 << n; i++) {
    for (int j = 0; j < 1 << n; j++) cout << a[i][j];
    cout << '\n';
  }
}
