#include <bits/stdc++.h>
using namespace std;
char Not(char c) {
  if (c == '*') return '+';
  return '*';
}
int main() {
  ios_base::sync_with_stdio(false);
  int k;
  char arr[520][520];
  arr[0][0] = '+';
  for (int c = 1; c < 10; c++) {
    for (int i = 0; i < (1 << (c - 1)); i++)
      for (int j = (1 << (c - 1)); j < (1 << c); j++)
        arr[i][j] = Not(arr[i][(1 << c) - j - 1]);
    for (int i = 1 << (c - 1); i < (1 << c); i++)
      for (int j = 0; j < (1 << (c - 1)); j++)
        arr[i][j] = arr[(1 << c) - i - 1][j];
    for (int i = 1 << (c - 1); i < (1 << c); i++)
      for (int j = (1 << (c - 1)); j < (1 << c); j++)
        arr[i][j] = arr[(1 << c) - i - 1][(1 << c) - j - 1];
  }
  while (cin >> k) {
    for (int i = 0; i < (1 << k); i++, cout << endl)
      for (int j = 0; j < (1 << k); j++) cout << arr[i][j];
  }
}
