function Main(input) {
	input = input.split("\n");
	var answer = 0;
 	for(var i=input; i>0; i--){
      if(i.toString().length%2 == 1){
        answer++;
      }
    }
	console.log(answer);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));