#include<bits/stdc++.h> using namespace std; int main() { long long n; cin >> n; for (int i = 1; i <= n; i++) { for (int c = 1; c <= n; c++) { if (i == c || i + c == n + 1) { cout << '+'; } else { cout << '-'; } cout << endl; } } return 0; }