#include <bits/stdc++.h>   using namespace std;   vector<string> solve(int k) {     vector<string> s;     if (k == 0) {       s.push_back( + );       return s;     }     vector<string> prev = solve(k - 1), rev;     for (int i = 0; i < prev.size(); i++) {       string temp;       for (int j = 0; j < prev.size(); j++) {         if (prev[i][j] ==  + )           temp +=  * ;         else           temp +=  + ;       }       rev.push_back(temp);     }     for (int i = 0; i < prev.size(); i++) {       s.push_back(prev[i] + prev[i]);       s.push_back(prev[i] + rev[i]);     }     return s;   }   int main() {     int k;     cin >> k;     vector<string> s;     s = solve(k);     for (int i = 0; i < s.size(); i++) {       cout << s[i] << endl;     }   }   