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 Java8 (OpenJDK 1.8.0) (judge verdict: Accepted)


import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String hoge = br.readLine();
		int count =0;
		if(hoge.charAt(0)!='C'){
			count++;
		}
		if(hoge.charAt(1)!='O'){
			count++;
		}
		if(hoge.charAt(2)!='D'){
			count++;
		}
		if(hoge.charAt(3)!='E'){
			count++;
		}
		if(hoge.charAt(4)!='F'){
			count++;
		}
		if(hoge.charAt(5)!='E'){
			count++;
		}
		if(hoge.charAt(6)!='S'){
			count++;
		}
		if(hoge.charAt(7)!='T'){
			count++;
		}
		if(hoge.charAt(8)!='I'){
			count++;
		}
		if(hoge.charAt(9)!='V'){
			count++;
		}
		if(hoge.charAt(10)!='A'){
			count++;
		}
		if(hoge.charAt(11)!='L'){
			count++;
		}
		if(hoge.charAt(12)!='2'){
			count++;
		}
		if(hoge.charAt(13)!='0'){
			count++;
		}
		if(hoge.charAt(14)!='1'){
			count++;
		}
		if(hoge.charAt(15)!='6'){
			count++;
		}

		System.out.println(count);

	}

}