# CODE FESTIVAL 2016 予選 B: A – Signboard

s = eval(input())

s_correct = 'CODEFESTIVAL2016'



iterations = 0



for i in range(len(s)):

    if s[i] != s_correct[i]:

        iterations += 1



print(iterations)
# CODE FESTIVAL 2016 予選 B: A – Signboard

expects = 'CODEFESTIVAL2016'

s = eval(input())



count = 0



for a, b in zip(expects, s):

    if a != b:

        count += 1



print(count)
# CODE FESTIVAL 2016 予選 B: A – Signboard
s = eval(input())
s_correct = "CODEFESTIVAL2016"
iterations = 0
for i in range(len(s)):
    if s[i] != s_correct[i]:
        iterations += 1
print(iterations)

# CODE FESTIVAL 2016 予選 B: A – Signboard
expects = "CODEFESTIVAL2016"
s = eval(input())
count = 0
for a, b in zip(expects, s):
    if a != b:
        count += 1
print(count)

+expects = "CODEFESTIVAL2016" -s_correct = "CODEFESTIVAL2016" -iterations = 0 -for i in range(len(s)): -    if s[i] != s_correct[i]: -        iterations += 1 -print(iterations) +count = 0 +for a, b in zip(expects, s): +    if a != b: +        count += 1 +print(count)