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