function Main(input) {
  var input = input.split("\n");
  var string = input[0];
  var answer = "CODEFESTIVAL2016";
  var count = 0;

  for(var i= 0; i < 16; i++){
    if(string.charAt(i) != answer.charAt(i)){
      count++;
    }
  }
  console.log(count);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));