for(i in r=readline(p=0))putstr("0*12345"[(p+=r[i]+1-0)<0|p>6?_:p])
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page