#include <bits/stdc++.h>
using namespace std;
const int N = 1e3, mod = 1e9 + 7;
vector<string> v[10 + 2];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  v[0].push_back("1");
  v[1].push_back("11");
  v[1].push_back("10");
  for (int i = 2; i <= 9; i++) {
    string a, b;
    for (int j = 0; j < (1 << i); j++) a.push_back('1');
    v[i].push_back(a);
    for (int j = 0; j < (1 << (i - 1)); j++) b.push_back('1');
    for (int j = 0; j < (1 << (i - 1)); j++) b.push_back('0');
    v[i].push_back(b);
    for (int j = 1; j < v[i - 1].size(); j++) {
      a = v[i - 1][j];
      v[i].push_back(a + a);
      b.clear();
      for (int k = 0; k < a.size(); k++) {
        if (a[k] == '0')
          b.push_back('1');
        else
          b.push_back('0');
      }
      v[i].push_back(a + b);
    }
  }
  int n;
  cin >> n;
  for (auto x : v[n]) {
    for (auto z : x) {
      if (z == '1')
        cout << '+';
      else
        cout << '*';
    }
    cout << "\n";
  }
  return 0;
}
