n = int(input()) ans = "" while n != 1: if n % 4 == 1: ans += '+' n = n * 3 + 1 elif n % 4 == 3: ans += '-' n = n * 3 - 1 else: ans += '/' n //= 2 print(len(ans)) print(ans)