#include using namespace std; using ll =long long; #define all(v) v.begin(),v.end() #define rep(i,a,b) for(int i=a;i=b;i--) ll INF=2e18; int main() { ios::sync_with_stdio(false); cin.tie(0); ll N;cin>>N; vector ans(0); while(N>1) { if(N%2==0) { ans.push_back('/'); N/=2; } else if(N%4==1) { ans.push_back('+'); N=3*N+1; } else { ans.push_back('-'); N=3*N-1; } } cout<