m=int(input()) S="" while m>1: if m%2: S+='+' m=m*3+1 else: S+='/' m/=2 print(len(S)) print(S)