N = int(input()) ans = [] S = set() while N>1: if N%2==0: S.add(N) ans.append("/") N//=2 else: if N in S: S.add(N) ans.append("+") N = 3*N+1 else: S.add(N) ans.append("-") N = 3*N-1 print(len(ans)) print("".join(ans))