N = gets.to_i n = N ans = [] while n > 1 if n.even? n /= 2 ans << '/' else n = 3 * n + 1 ans << '+' end end puts ans.size puts ans.join