from collections import defaultdict as dd import sys sys.setrecursionlimit(10 ** 4 + 1) n = int(input()) dic = dd(lambda:"") ans = list() try: def dfs(v): if v == 1: ans.append(dic[v]) return if v > 0 and v % 2 == 0: dic[v//2] = dic[v] + "/" dfs(v//2) elif v > 0: dic[3*v+1] = dic[v] + "+" dfs(3*v+1) dic[3*v-1] = dic[v] + "-" dfs(3*v-1) else: return m = n dfs(m) #print(ans) print(len(ans[0])) print(ans[0]) except: print(len(ans[0])) print(ans[0])