N = int(input()) m = N ans = "" ans_cnt = 0 while m != 1: if m % 2 == 0: ans += "/" m //= 2 else: if m % 4 == 1: ans += "+" m *= 3 m += 1 else: ans += "-" m *= 3 m -= 1 ans_cnt += 1 print(ans_cnt) print(ans)