#import <stdio.h>
#define rep(i, n) for (int i = 0, i##_len = (int)(n); i < i##_len; i++)

int main() {
    char a[] = "CODEFESTIVAL2016";
    char b[17];
    scanf("%s", b);
    int ans = 0;
    rep(i, 17) if (a[i] != b[i]) ans++;
    printf("%d\n", ans);
}

