"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const S = arg[0].split("");
    const correct = "CODEFESTIVAL2016".split("");
    
    let answer = 0;
    
    for(let i in S) {
        if(S[i] !== correct[i]) {
            answer++;
        }
    }
    
    console.log(answer);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));