'use strict'

const main = input => {
	const args = input.split('\n').map(arg => arg.split(' '))
	const S = args[0][0]
	const W = 'CODEFESTIVAL2016'
	let cnt = 0

	for (let i = 0; i < 16; i++) {
		if (S[i] !== W[i]) cnt++
	}

	console.log(cnt)
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))
