#!ruby -nlKu n=s=0 $_.chars{|c|p='\xb8\x80\xba\x8c\xb8\x89\x9b\x9b\xba\x94\x85\xad\xb8\x83\x85\xab\xb9\x9d\x8d\x81\x99\xbe\x8d\x83'.index(c[1..3])/2-8 s=p>0?(n+=(s>0?s:1)*10**p;0):p+9} n+=s p n
Note that non-ascii characters in the above source code will be escaped (such as \x9f).