N = int(input()) ans = [] x = N m = 10 ** 18 while x != 1: if x % 2 == 0: ans.append('/') x //= 2 elif x < 100: ans.append('+') x = 3 * x + 1 else: ans.append('-') x = 3 * x - 1 print(len(ans)) print(''.join(ans))