l=0 o="" for a in map(ord,raw_input()):d=a-l;o+="+"*d+"-"*-d+".";l=a print o
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page