(<>*100+<>*25+<>)=~/(.?)(..)$/;print$2%25+$1+$2/25|0