P26396 [AtCoder] Signboard
入门
题目描述

Problem Description

CODE FESTIVAL 2016 is being held. To prepare for the event, Takahashi decided to make a signboard for CODE FESTIVAL 2016.

He intended to write CODEFESTIVAL2016 on the signboard, but mistakenly wrote a different string $ S $ instead. Fortunately, the length of the written string was correct.

Therefore, Takahashi decided to make the minimum number of operations to change one character to another to rewrite this string to CODEFESTIVAL2016.

Find the minimum number of changes required.

Input Format

The input is given from the standard input in the following format:

$ S $

Output Format

Output the minimum number of changes as an integer.

Sample Input and Output

Sample Input #1

C0DEFESTIVAL2O16

Sample Output #1

2

Sample Input #2

FESTIVAL2016CODE

Sample Output #2

16

Notes/Hints

Constraints

  • The length of $ S $ is $ 16 $.
  • $ S $ consists of uppercase letters, lowercase letters, and digits.

Sample Explanation 1

The 0 at the 2nd character needs to be changed to O, and the O at the 14th character needs to be changed to 0.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
C0DEFESTIVAL2O16
样例输出
2