#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(int i=0;i> N; vector v; ll m=N; for(i=10000;i>=1;i--){ if(m==1) break; if(m%2==0){ m=m/2; v.push_back('/'); continue; } else{ if(((3*m+1)/2)%2==1){ m=3*m-1; v.push_back('-'); continue; }else{ m=3*m+1; v.push_back('+'); continue; } } } REP(i,v.size()) cout << v[i]; cout << endl; return 0; }