#include <bits/stdc++.h>
using namespace std;
vector<vector<int> > Trans(const vector<vector<int> >& first,
                           const vector<vector<int> >& second, int n) {
  vector<vector<int> > result(2 * n, vector<int>(2 * n));
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < n; ++j) {
      result[i][j] = first[i][j];
      result[i][j + n] = second[i][j];
      result[i + n][j] = first[i][j];
      result[i + n][j + n] = -second[i][j];
    }
  }
  return result;
}
void print(const vector<vector<int> >& matrix) {
  for (size_t i = 0; i < matrix.size(); ++i) {
    for (size_t j = 0; j < matrix[0].size(); ++j) {
      if (matrix[i][j] == 1) {
        cout << '+';
      } else {
        cout << '*';
      }
    }
    cout << '\n';
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int k;
  cin >> k;
  vector<vector<int> > array(1, vector<int>(1, 1));
  int currentN = 1;
  for (int i = 0; i < k; ++i) {
    array = Trans(array, array, currentN);
    currentN *= 2;
  }
  print(array);
  return 0;
}
