y=0;p=0;m=9;X={} L=io.read() for i=1,L:len()do c=L:byte(i) y=y+(c>p and 1 or(c