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