t=list(eval(input()));print((sum([1for i in range(16)if'CODEFESTIVAL2016'[i]!=t[i]])))
print((sum(a!=b for a,b in zip('CODEFESTIVAL2016',eval(input())))))
t = list(eval(input()))
print((sum([1 for i in range(16) if "CODEFESTIVAL2016"[i] != t[i]])))

print((sum(a != b for a, b in zip("CODEFESTIVAL2016", eval(input())))))

-t = list(eval(input())) -print((sum([1 for i in range(16) if "CODEFESTIVAL2016"[i] != t[i]]))) +print((sum(a != b for a, b in zip("CODEFESTIVAL2016", eval(input())))))