add_sub_brainfuck_code by croyal

s,n,r=raw_input(),0,''
for c in s:
 i=ord(c)
 while n<>i:
  if n<i:r+='+';n+=1
  elif n>i:r+='-';n-=1
 r+='.'
print r

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page