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