#include <bits/stdc++.h>

using namespace std;

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