#include <bits/stdc++.h>
using namespace std;
string rev(string s) {
  for (int i = 0; i < (int)s.length(); i++) {
    if (s[i] == '+')
      s[i] = '*';
    else
      s[i] = '+';
  }
  return s;
}
vector<string> rec_sol(int k) {
  if (!k) {
    vector<string> v;
    v.push_back("+");
    return v;
  }
  vector<string> v;
  vector<string> v2 = rec_sol(k - 1);
  int n2 = 1 << (k - 1);
  for (int i = 0; i < n2; i++) {
    string cur = v2[i] + v2[i];
    v.push_back(cur);
  }
  for (int i = 0; i < n2; i++) {
    string cur = v2[i] + rev(v2[i]);
    v.push_back(cur);
  }
  return v;
}
void solve() {
  int k;
  cin >> k;
  vector<string> ans = rec_sol(k);
  int n = 1 << k;
  for (int i = 0; i < n; i++) {
    cout << ans[i] << endl;
  }
}
int main() {
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
