#include using namespace std; const long long MOD = 998244353; int main(void){ //cin.tie(nullptr); //ios::sync_with_stdio(false); long long N; cin >> N; string Ans; while(N>1){ if(N%2==0){ Ans.push_back('/'); N /= 2; }else{ Ans.push_back('+'); N = 3*N+1; } } cout << (Ans.size()) << endl; cout << Ans << endl; return 0; }