Chord

AtCoder
IDabc312_a
Time2000ms
Memory256MB
Difficulty
Given a length-$3$ string $S$ consisting of uppercase English letters, print `Yes` if $S$ equals one of `ACE`, `BDF`, `CEG`, `DFA`, `EGB`, `FAC`, and `GBD`; print `No` otherwise. ## Constraints * $S$ is a length-$3$ string consisting of uppercase English letters. ## Input The input is given from Standard Input in the following format: $S$ [samples]
Samples
Input #1
ABC
Output #1
No

When $S =$ `ABC`, $S$ does not equal any of `ACE`, `BDF`, `CEG`, `DFA`, `EGB`, `FAC`, and `GBD`, so `No` should be printed.
Input #2
FAC
Output #2
Yes
Input #3
XYX
Output #3
No
API Response (JSON)
{
  "problem": {
    "name": "Chord",
    "description": {
      "content": "Given a length-$3$ string $S$ consisting of uppercase English letters, print `Yes` if $S$ equals one of `ACE`, `BDF`, `CEG`, `DFA`, `EGB`, `FAC`, and `GBD`; print `No` otherwise.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc312_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Given a length-$3$ string $S$ consisting of uppercase English letters, print `Yes` if $S$ equals one of `ACE`, `BDF`, `CEG`, `DFA`, `EGB`, `FAC`, and `GBD`; print `No` otherwise.\n\n## Constraints\n\n*   ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments