Signboard

AtCoder
IDcodefestival_2016_qualB_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
Input #1
C0DEFESTIVAL2O16
Output #1
2

The second character `0` must be changed to `O` and the $14$th character `O` changed to `0`.
Input #2
FESTIVAL2016CODE
Output #2
16
API Response (JSON)
{
  "problem": {
    "name": "Signboard",
    "description": {
      "content": "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$. Fort",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "codefestival_2016_qualB_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "CODE FESTIVAL 2016 is going to be held. For the occasion, Mr. Takahashi decided to make a signboard.\nHe intended to write `CODEFESTIVAL2016` on it, but he mistakenly wrote a different string $S$. Fort...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments