#!ruby -n *o=0 $_.bytes{|b,s|a,m=0,1;*o=[o.each{|x|a+=x;m*=x;s=*s,x-1,x+1},m,o[-~b%3..~b/62],a,s][b/29]} p o