object MainKt {
  @JvmStatic fun main(args:Array<String>) {
    val s=readLine()!!.toString()
    val c="CODEFESTIVAL2016"  
    println(    (0..(c.length-1)).map {s[it]!=c[it]}.filter {it}.size)
  }
}
