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