#include namespace nono { void solve() { long long n; std::cin >> n; std::vector op; while (n != 1) { if (n % 2 == 0) { op.push_back('/'); n /= 2; } else { n *= 3; if (n & (1 << 1)) { op.push_back('+'); n++; } else { op.push_back('-'); n--; } } } std::cout << op.size() << std::endl; for (auto c: op) { std::cout << c; } std::cout << std::endl; } } // namespace nono int main() { std::cin.tie(0)->sync_with_stdio(0); std::cout << std::fixed << std::setprecision(15); int t = 1; // std::cin >> t; while (t--) nono::solve(); }