N = int(input()) ANS = [] S = (20,10,5,14,7) 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('+') print(len(ANS)) print(''.join(ANS))