#include <bits/stdc++.h>
using namespace std;
string dp[800][800];
int cnt[800];
string reverse_str(const string &base) {
  string res;
  for (int i = 0; i < base.size(); ++i) {
    if (base[i] == '+')
      res.push_back('*');
    else
      res.push_back('+');
  }
  return res;
}
void init() {
  for (int x = 0; x < 9; ++x)
    for (int i = 0; i < (1 << x); ++i) {
      int f = cnt[x + 1]++;
      dp[x + 1][f] = dp[x][i] + dp[x][i];
      f = cnt[x + 1]++;
      dp[x + 1][f] = dp[x][i] + reverse_str(dp[x][i]);
    }
}
int main(int argc, char *argv[]) {
  dp[0][0] = "+";
  init();
  int k;
  cin >> k;
  for (int i = 0; i < (1 << k); ++i) cout << dp[k][i] << endl;
  return 0;
}
