fun main(args : Array<String>) {
    val s = readLine()!!
    val SAMPLE = "CODEFESTIVAL2016"

    var count = 0
    for (i in 0 until s.length) {
        if (s[i] != SAMPLE[i]) count++
    }

    println(count)
}