import sys sys.setrecursionlimit(300000) def DFS(n): global ans if n == 1 and len(ans) <= 10000: print(len(ans)) print(''.join(ans)) exit() if 10000 <= len(ans): return if n % 2 == 0: ans.append('/') DFS(n//2) ans.pop() else: if 3 * n + 1 <= 10**18: ans.append('+') DFS(3*n+1) ans.pop() if 3 * n - 1 <= 10**18: ans.append('-') DFS(3*n-1) ans.pop() N = int(input()) ans = list() DFS(N)