#include <bits/stdc++.h>
using namespace std;
string neg(string s) {
  for (int i = 0; i < (int)s.size(); i++)
    if (s[i] == '+')
      s[i] = '*';
    else
      s[i] = '+';
  return s;
}
vector<string> harmony(int k) {
  vector<string> v, tmp;
  if (k == 2) {
    v.push_back("++**");
    v.push_back("+*+*");
    v.push_back("++++");
    v.push_back("+**+");
  } else {
    tmp = harmony(k - 1);
    v = tmp;
    for (int i = 0; i < (int)tmp.size(); i++) v[i] += tmp[i];
    for (int i = 0; i < (int)tmp.size(); i++) v.push_back(neg(tmp[i]) + tmp[i]);
  }
  return v;
}
int main() {
  int k;
  cin >> k;
  if (k == 0) {
    cout << "+";
    return 0;
  }
  if (k == 1) {
    cout << "++" << endl << "+*" << endl;
    return 0;
  }
  vector<string> v = harmony(k);
  for (int i = 0; i < (int)v.size(); i++) cout << v[i] << endl;
  return 0;
}
