s = eval(input())

a = 'CODEFESTIVAL2016'

cnt = 0

for i in range(16):

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

        cnt += 1

print(cnt)
s = eval(input())

t = 'CODEFESTIVAL2016'

a = sum(c1 != c2 for c1, c2 in zip(s, t))

print(a)
s = eval(input())
a = "CODEFESTIVAL2016"
cnt = 0
for i in range(16):
    if s[i] != a[i]:
        cnt += 1
print(cnt)

s = eval(input())
t = "CODEFESTIVAL2016"
a = sum(c1 != c2 for c1, c2 in zip(s, t))
print(a)

-a = "CODEFESTIVAL2016" -cnt = 0 -for i in range(16): -    if s[i] != a[i]: -        cnt += 1 -print(cnt) +t = "CODEFESTIVAL2016" +a = sum(c1 != c2 for c1, c2 in zip(s, t)) +print(a)