System.in.eachLine{a=it;for(i=1;it!=(a=a.tr"a-z",it);)i++;println i}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page