import random n = int(input()) ans = [] cnt = 0 while n > 1: if n % 2 == 0: n //= 2 ans.append('/') else: if random.randrange(2) == 0: n = n * 3 - 1 ans.append('-') else: n = n * 3 + 1 ans.append('+') cnt += 1 if cnt >= 10000: break print(len(ans)) print("".join(ans))