#include <bits/stdc++.h>
using namespace std;
const int maxn = 2048;
string s[maxn];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int k;
  cin >> k;
  if (k == 0) {
    cout << '*' << endl;
    return 0;
  }
  s[0] = "+";
  for (int i = 0; i < k; i++) {
    int mab = (1 << i);
    for (int j = 0; j < (1 << i); j++) {
      s[mab + j] = s[j];
      string t = "";
      for (int l = 0; l < (int)s[j].size(); l++) {
        if (s[j][l] == '+')
          t.push_back('*');
        else
          t.push_back('+');
      }
      s[j] = s[j] + s[j];
      s[mab + j] = s[mab + j] + t;
    }
  }
  for (int i = 0; i < (1 << k); i++) cout << s[i] << endl;
  return 0;
}
