#include <bits/stdc++.h>
using namespace std;
string a[2048];
void copy(int n) {
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) a[i].push_back('-');
  for (int i = n; i < 2 * n; i++)
    for (int j = 0; j < 2 * n; j++) a[i].push_back('-');
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) {
      a[i][j + n] = a[i][j];
      a[i + n][j] = a[i][j];
      if (a[i][j] == '+')
        a[i + n][j + n] = '*';
      else
        a[i + n][j + n] = '+';
    }
}
int main() {
  int k;
  cin >> k;
  int k2 = 1;
  if (k == 0) {
    cout << '+';
    return 0;
  }
  a[0] = "+*";
  a[1] = "++";
  for (int i = 0; i < k - 1; i++) {
    k2 *= 2;
    copy(k2);
  }
  k2 *= 2;
  for (int i = 0; i < k2; i++) cout << a[i] << endl;
  return 0;
}
