import sys sys.setrecursionlimit(10**6) a=int(input()) global i 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!=a: 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)