Score : 100 points
CODE FESTIVAL 2016 is going to be held. For the occasion, Mr. Takahashi decided to make a signboard.
He intended to write CODEFESTIVAL2016
on it, but he mistakenly wrote a different string S. Fortunately, the string he wrote was the correct length.
So Mr. Takahashi decided to perform an operation that replaces a certain character with another in the minimum number of iterations, changing the string to CODEFESTIVAL2016
.
Find the minimum number of iterations for the rewrite operation.
Inputs are provided from Standard Input in the following form.
S
Output an integer representing the minimum number of iterations needed for the rewrite operation.
C0DEFESTIVAL2O16
2
The second character 0
must be changed to O
and the 14th character O
changed to 0
.
FESTIVAL2016CODE
16