n = int(input()) S = [] while n > 1: if n & 1: a = 3 * n + 1 if a % 4 == 0: n = a S.append("+") else: n = 3 * n - 1 S.append("-") else: n //= 2 S.append("/") print(len(S)) print("".join(S))