""" """ import sys from sys import stdin N = int(stdin.readline()) ans = [] while N != 1: if N % 2 == 0: ans.append("/") N //= 2 elif (3*N+1) % 2 == 0: ans.append("+") N = 3*N+1 else: ans.append("-") N = 3*N-1 print (len(ans)) print ("".join(ans))