#include <bits/stdc++.h>
using namespace std;
int main(){
  string S,T;
  cin >> S;
  T = "CODEFESTIVAL2016";
  int count;
  for (int i = 0; i < 16; i++){
    if (S.at(i) != T.at(i)) count++;
  }
  cout << count;
}