#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a;
c=a-2;
b=(a-3)/2;
for(int t=1;t<=2;t++){
cout<<"|";
for(int u=1;u<=c;u++){
cout<<"-";
}
cout<<"|"<<endl;
for(int i=1;i<=b;i++){
cout<<"|";
for(int g=1;g<=c;g++){
cout<<"x";
}
cout<<"|"<<endl;
}
}
cout<<"|";
for(int u=1;u<=c;u++){
cout<<"-";
}
cout<<"|";
return 0;
}