#include<iostream>
#include<string>
using namespace std;
int n;
void dfs(int t,int sum,string outs,int num){
if(t==n){
if(sum+num==0) cout<<outs<<endl;
return ;
}
if(num>=0)
dfs(t+1,sum,outs+' '+char(t+49),num*10+t+1);
else
dfs(t+1,sum,outs+' '+char(t+49),num*10-t-1);
dfs(t+1,sum+num,outs+'+'+char(t+49),t+1);
dfs(t+1,sum+num,outs+'-'+char(t+49),-t-1);
}
int main(){
ios::sync_with_stdio(false);
cin>>n;
dfs(1,0,"1",1);
return 0;
}