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