#include<bits/stdc++.h>
using namespace std;
int main()
{
	string s1,s2="CODEFESTIVAL2016";
	cin>>s1;
	int ans=0;
	for(int i=0;i<s1.length();i++)
	if(s1[i]!=s2[i]) ans++;
	printf("%d\n",ans);
    return 0;
}