b=0;c=0;gets.split(' ').each{ |d| if(d>'b') b+=1;else c+=1;puts(b-c)end}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page