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