import random n = int(input()) m = n ans = [] mode = 0 while mode == 0: ans = [] n = m 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('+') if n > 10 ** 18: break if n == 1: mode = 1 #print(mode) print(len(ans)) print("".join(ans))