#include #include using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); uint64_t N; cin >> N; string c; while (N != 1) { if (!(N & 1)) c.push_back('/'), N >>= 1; else if (((N * 3) & 3) == 3) c.push_back('+'), N = N * 3 + 1; else c.push_back('-'), N = N * 3 - 1; } cout << c.size() << '\n' << c << '\n'; return 0; }