fun main(args: Array<String>) {
    codefestival2016qualb_a()
}

fun codefestival2016qualb_a() {
    val s = readLine()!!

    val cf = "CODEFESTIVAL2016"

    val answer = s.withIndex().count { it.value != cf[it.index] }

    println(answer)
}
