#include using namespace std; int main() { unsigned long long N; cin >> N; string ans; while (N != 1){ if (N % 2 == 0){ N /= 2; ans.push_back('/'); } else { if (N * 3 + 1 <= (long long) 1e18){ N = N * 3 + 1; ans.push_back('+'); } else { N = N * 3 - 1; ans.push_back('-'); } } } cout << ans.size() << '\n'; cout << ans << '\n'; }