program main
	implicit none
    integer::i,ans
    character(16)::s,t
    t='CODEFESTIVAL2016'
    read(*,*)s
    ans=16
    do i=1,16
    	if(s(i:i)==t(i:i))then
        	ans=ans-1
        end if
    end do
    write(*,*)ans
    stop
end program main
    