#include <bits/stdc++.h>
using namespace std;
void FastIO() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  cout.precision(15);
}
string fun(string str) {
  int i, l = str.length();
  for (i = 0; i < l; i++) {
    if (str[i] == '+')
      str[i] = '*';
    else
      str[i] = '+';
  }
  return str;
}
string s[10][1000];
int main() {
  FastIO();
  int i, n, j;
  cin >> n;
  if (n == 0) {
    cout << '+' << "\n";
    return 0;
  }
  s[0][0] = "++";
  s[0][1] = "+*";
  if (n == 1) {
    cout << s[0][0] << "\n";
    cout << s[0][1] << "\n";
    return 0;
  }
  for (i = 1; i < 9; i++) {
    for (j = 0; j < (1 << i); j++) s[i][j] = s[i - 1][j] + s[i - 1][j];
    for (j = (1 << i); j < (1 << (i + 1)); j++)
      s[i][j] = s[i - 1][j - (1 << i)] + fun(s[i - 1][j - (1 << i)]);
    if (i == (n - 1)) {
      for (j = 0; j < (1 << n); j++) cout << s[i][j] << "\n";
      return 0;
    }
  }
  return 0;
}
