a=io.read()b=0 for i=1,#a do c=a:sub(i,i):byte()-b io.write((c>0 and"+"or"-"):rep(math.abs(c))..".")b=b+c end