import Foundation


//  input

var strArray = readLine()



var strCheck : [String] = ["C","O","D","E","F","E","S","T","I","V","A","L","2","0","1","6"]


// GET part of String
func getStringUsingIndex1(start : Int , end : Int , str : String) -> String {
    let startIndex = str.index(str.startIndex, offsetBy: start)
    let endIndex = str.index(str.startIndex, offsetBy: end)
    return str[startIndex ... endIndex]                                     // "bensiso" -> "Siso"
    
}

var mone = 0
for  i in  0 ... 15 {
    if getStringUsingIndex1(start : i ,end : i ,str : strArray!) != strCheck[i] {
        mone += 1
    }
}

print(mone)