#include<cstdio>
#include<cstring>


int main(){
  char s[30],t[] = "CODEFESTIVAL2016";
  int ans = 0;
  scanf("%s",s);
  int l = strlen(s);
  for(int i=0;i<l;i++) if(s[i]!=t[i]) ans++;
  printf("%d\n",ans);
}
