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