object Main{
  def main(args: Array[String]): Unit={
    val str = readLine()
    val code = "CODEFESTIVAL2016"
    var cnt = 0
    for(i<-0 to 15; if str(i) != code(i)) yield cnt+=1
    println(cnt)
  }
}