import sys sys.setrecursionlimit(10**9) a=int(input()) def c(b,result=None,i=0): if result is None: result=[] if b==1: return result,i else: if b%2==0: b=b/2 result.append("/") i+=1 else: if b!=7: b=3*b-1 result.append("-") i+=1 else: b=3*b+1 result.append("+") i+=1 return c(b,result,i) d,e=c(a) print(e) print(*d)