import Control.Applicative ((<$>), (<*>))
import Control.Monad
import Data.List

main :: IO ()
main = do
  solve <$> getLine >>= print

solve :: String -> Int
solve = sum . zipWith f "CODEFESTIVAL2016"
  where
    f x y
      | x == y = 0
      | otherwise = 1
