abc of ABC

AtCoder
IDabc093_a
Time2000ms
Memory256MB
Difficulty
You are given a string $S$ of length $3$ consisting of `a`, `b` and `c`. Determine if $S$ can be obtained by permuting `abc`. ## Constraints * $|S|=3$ * $S$ consists of `a`, `b` and `c`. ## Input Input is given from Standard Input in the following format: $S$ [samples]
Samples
Input #1
bac
Output #1
Yes

Swapping the first and second characters in `bac` results in `abc`.
Input #2
bab
Output #2
No
Input #3
abc
Output #3
Yes
Input #4
aaa
Output #4
No
API Response (JSON)
{
  "problem": {
    "name": "abc of ABC",
    "description": {
      "content": "You are given a string $S$ of length $3$ consisting of `a`, `b` and `c`. Determine if $S$ can be obtained by permuting `abc`.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc093_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a string $S$ of length $3$ consisting of `a`, `b` and `c`. Determine if $S$ can be obtained by permuting `abc`.\n\n## Constraints\n\n*   $|S|=3$\n*   $S$ consists of `a`, `b` and `c`.\n\n## Inp...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments