#include <bits/stdc++.h>
using namespace std;
string flip(string tmp) {
  string ret = "";
  int n = tmp.size();
  for (int i = 0; i < n; i++) {
    if (tmp[i] == '+')
      ret += '*';
    else
      ret += '+';
  }
  return ret;
}
vector<string> ans;
vector<string> tp;
vector<string> fin;
int main() {
  ans.push_back("++");
  ans.push_back("+*");
  int k;
  cin >> k;
  if (k == 0) {
    cout << "+";
    return 0;
  }
  int tmp = powl(2, k);
  while (tmp != ans.size()) {
    for (int i = 0; i < ans.size(); i++) tp.push_back(flip(ans[i]));
    for (int i = 0; i < ans.size(); i++) {
      fin.push_back(ans[i] + ans[i]);
    }
    for (int i = 0; i < ans.size(); i++) {
      fin.push_back(ans[i] + tp[i]);
    }
    ans.clear();
    for (int i = 0; i < fin.size(); i++) {
      ans.push_back(fin[i]);
    }
    fin.clear();
    tp.clear();
  }
  for (int i = 0; i < ans.size(); i++) {
    cout << ans[i] << endl;
  }
}
