N = int(input()) S = "" while N != 1: if N % 4 == 1: S += "+" N = N * 3 + 1 elif N % 4 == 3: S += "-" N = N * 3 - 1 else: S += "/" N = N / 2 print(len(S)) print(S)