CF

AtCoder
IDcodefestival_2016_qualC_a
Time1000ms
Memory256MB
Difficulty
This contest is `CODEFESTIVAL`, which can be shortened to the string `CF` by deleting some characters. Mr. Takahashi, full of curiosity, wondered if he could obtain `CF` from other strings in the same way. You are given a string $s$ consisting of uppercase English letters. Determine whether the string `CF` can be obtained from the string $s$ by deleting some characters. ## Constraints * $2 ≤ |s| ≤ 100$ * All characters in $s$ are uppercase English letters (`A`\-`Z`). ## Input The input is given from Standard Input in the following format: $s$ [samples]
Samples
Input #1
CODEFESTIVAL
Output #1
Yes

`CF` is obtained by deleting characters other than the first character `C` and the fifth character `F`.
Input #2
FESTIVALCODE
Output #2
No

`FC` can be obtained but `CF` cannot be obtained because you cannot change the order of the characters.
Input #3
CF
Output #3
Yes

It is also possible not to delete any characters.
Input #4
FCF
Output #4
Yes

`CF` is obtained by deleting the first character.
API Response (JSON)
{
  "problem": {
    "name": "CF",
    "description": {
      "content": "This contest is `CODEFESTIVAL`, which can be shortened to the string `CF` by deleting some characters. Mr. Takahashi, full of curiosity, wondered if he could obtain `CF` from other strings in the same",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "codefestival_2016_qualC_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "This contest is `CODEFESTIVAL`, which can be shortened to the string `CF` by deleting some characters.\nMr. Takahashi, full of curiosity, wondered if he could obtain `CF` from other strings in the same...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments