#include <iostream>
#include<string>
using namespace std;

int main() {
	string s;cin>>s;
	string s2="CODEFESTIVAL2016";
	int ans=0;
	for(int i=0;i<16;i++){
		if(s2[i]!=s[i])ans++;
	}
	cout<<ans<<endl;
	return 0;
}
