N = int(input()) now = N ans = [] while now>1: if now%2==0: ans.append("/") now//=2 else: if (3*now+1)%4==0: ans.append("+") now = 3*now+1 else: ans.append("-") now = 3*now-1 assert(now<=10**18) assert(len(ans)<=10000) print(len(ans)) print("".join(ans))