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