#include <bits/stdc++.h>
using namespace std;
int a[1025][1025];
int main() {
  int n;
  cin >> n;
  int t = 1;
  a[0][0] = 1;
  while (n--) {
    for (int i = 0; i < t; i++) {
      for (int j = 0; j < t; j++) {
        a[i + t][j] = a[i][j + t] = a[i][j];
        a[i + t][j + t] = -a[i][j];
      }
    }
    t <<= 1;
  }
  for (int i = 0; i < t; i++) {
    for (int j = 0; j < t; j++) {
      if (a[i][j] == 1)
        putchar('+');
      else
        putchar('*');
    }
    printf("\n");
  }
  return 0;
}
