#include<iostream>
using namespace std;
const string n="CODEFESTIVAL2016";
short ans;
int main()
{
	string s;
	cin>>s;
	for(short i=0;i<n.size();i++)
		if(n[i]!=s[i])
			ans++;
	cout<<ans;
	return 0;
}