#include<iostream>using namespace std;void a(char x,int y ){while(y-->0) cout<<x;}
int main(){ int n; while(cin>>n) { for(int i=1;i<=n;i++) { a('_',n-i); a('+',i) ; cout<<endl; } } }