let s = Array(readLine()!.characters)
let codeFes = Array("CODEFESTIVAL2016".characters)

print(Array(0 ..< codeFes.count).reduce(0) { sum, iter in
    if s[iter] != codeFes[iter] {
        return sum + 1
    } else {
        return sum
    }
})