unittest
{
	assert( [ "C0DEFESTIVAL2O16" ].parse.expand.solve == 2 );
	assert( [ "FESTIVAL2016CODE" ].parse.expand.solve == 16 );
}



import std.conv;
import std.range;
import std.stdio;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto s = input.front.to!( dchar[] );
	return tuple( s );
}

auto solve( dchar[] s )
{
	auto ans = 0L;
	foreach( sc, tc; lockstep( s, "CODEFESTIVAL2016"d ) )
	{
		ans += ( sc != tc );
	}
	return ans;
}
