#include using namespace std; typedef long long ll; int main(){ random_device seed_gen; default_random_engine engine(seed_gen()); uniform_int_distribution dist(0, 1); ll n; cin >> n; vector ans; while(n > 1){ if (n % 2 == 0){ ans.push_back('/'); n /= 2; }else{ if (dist(engine) == 0){ ans.push_back('+'); n = n * 3 + 1; }else{ ans.push_back('-'); n = n * 3 - 1; } } } cout << (int)ans.size() << endl; for (int i=0; i<(int)ans.size(); i++){ cout << ans[i]; } cout << endl; }