#include using namespace std; int main(){ long long n; cin >> n; int ans = 0; string s; while(n != 1){ if(n % 2 == 0){ s += "/"; n /= 2; } else { n *= 3; if(n % 4 == 1){ n -= 1; s += "-"; } else { n += 1; s += "+"; } } ans++; } cout << ans << endl << s; }