
import scala.io.StdIn

object Main {
  def main(args: Array[String]): Unit = {
    val N = StdIn.readLine()
    val ans = "CODEFESTIVAL2016"
    var counter = 0
    for ((ch, i) <- N.toCharArray.zipWithIndex) {
      if (ch != ans.charAt(i)) {
        counter += 1
      }
    }
    println(counter)
  }

}
