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