Problem:
Score : 100 points

Problem Statement

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.

Constraints

S is 16 characters long.

S consists of uppercase and lowercase alphabet letters and numerals.

Input

Inputs are provided from Standard Input in the following form.

S

Output

Output an integer representing the minimum number of iterations needed for the rewrite operation.

Sample Input 1

C0DEFESTIVAL2O16

Sample Output 1

2

The second character 0 must be changed to O and the 14th character O changed to 0.

Sample Input 2

FESTIVAL2016CODE

Sample Output 2

16

Solution in Ruby (2.3.3) (judge verdict: Wrong Answer)

s = gets.to_s
s.chars
puts s
count = 0
num = 0
s.each_char do |i|
  if (count==0 && i == 'C' ) then
    num = num + 1
  end
  if (count==1 && i == 'O' ) then
    num = num + 1
  end
  if (count==2 && i == 'D' ) then
    num = num + 1
  end
  if (count==3 && i == 'E' ) then
    num = num + 1
  end
  if (count==4 && i == 'F' ) then
    num = num + 1
  end
  if (count==5 && i == 'E' ) then
    num = num + 1
  end
  if (count==6 && i == 'S' ) then
    num = num + 1
  end
  if (count==7 && i == 'T' ) then
    num = num + 1
  end
  if (count==8 && i == 'I' ) then
    num = num + 1
  end
  if (count==9 && i == 'V' ) then
    num = num + 1
  end
  if (count==10 && i == 'A' ) then
    num = num + 1
  end
  if (count==11 && i == 'L' ) then
    num = num + 1
  end
  if (count==12 && i == '2' ) then
    num = num + 1
  end
  if (count==13 && i == '0' ) then
    num = num + 1
  end
  if (count==14 && i == '1' ) then
    num = num + 1
  end
  if (count==15 && i == '6' ) then
    num = num + 1
    break
  end
  count = count + 1
end

sum = 16 - num
sum.to_i
print("#{sum}\n")