import std.stdio, std.conv, std.string, std.array, std.range, std.algorithm, std.container;
import std.math, std.random, std.bigint, std.datetime, std.format;
import std.typecons;

void main() {
    auto s = read();
    const string t = "CODEFESTIVAL2016";
    int ret = 0;
    foreach(i; 0..t.length) {
        if (s[i] != t[i]) ret++;
    }
    writeln(ret);
}

string read() {
    static string[] ss;
    while (!ss.length) ss = readln.chomp.split;
    auto res = ss[0];
    ss.popFront;
    return res;
}