#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); ll n; cin >> n; string ans; while(n != 1){ if(n & 1){ if((3 * n + 1) % 4 == 0){ ans += '+'; n = 3 * n + 1; }else{ ans += '-'; n = 3 * n - 1; } }else{ ans += "/"; n /= 2; } } //cerr << n << '\n'; cout << ans.size() << '\n'; cout << ans << '\n'; }