N = int(input()) ans = [] while N != 1: if N % 2 == 0: N //= 2 ans += "/" else: Np, cp = N * 3 + 1, 0 Nm, cm = N * 3 - 1, 0 while Np % 2 == 0: Np //= 2 cp += 1 while Nm % 2 == 0: Nm //= 2 cm += 1 if cp > cm: N = Np ans += "+" + "/" * cp else: N = Nm ans += "-" + "/" * cm print(len(ans)) print(*ans, sep="")