import sys, time, random from collections import deque, Counter, defaultdict input = lambda: sys.stdin.readline().rstrip() ii = lambda: int(input()) mi = lambda: map(int, input().split()) li = lambda: list(mi()) inf = 2 ** 63 - 1 mod = 998244353 n = ii() ans = [] while n != 1: if n % 2 == 0: ans.append('/') n //= 2 else: if random.random() < 0.5: ans.append('-') n = 3 * n - 1 else: ans.append('+') n = 3 * n + 1 print(len(ans)) print(''.join(ans))