<?for(;$s=fgets(STDIN);)for($i=2;$i--;$n&&print"$a ")$a+=$n=substr_count($s,$i?~\xd2:~\xa0);
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page