#include using namespace std; using ll = long long; #define rep(i,n) for(int i=0;i<(int)(n);i++) int main(){ ll n; cin>>n; string ans; while(n>1){ if(n&1){ if(n%4==1){ ans.push_back('+'); n=n*3+1; }else{ ans.push_back('-'); n=n*3-1; } }else{ ans.push_back('/'); n/=2; } } cout<