Lacked Number

AtCoder
IDabc248_a
Time2000ms
Memory256MB
Difficulty
You are given a string $S$ of length exactly $9$ consisting of digits. One but all digits from `0` to `9` appear exactly once in $S$. Print the only digit missing in $S$. ## Constraints * $S$ is a string of length $9$ consisting of digits. * All characters in $S$ are distinct. ## Input Input is given from Standard Input in the following format: $S$ [samples]
Samples
Input #1
023456789
Output #1
1

The string `023456789` only lacks $1$. Thus, $1$ should be printed.
Input #2
459230781
Output #2
6

The string `459230781` only lacks $6$. Thus, $6$ should be printed.
Note that the digits in the string may not appear in increasing order.
API Response (JSON)
{
  "problem": {
    "name": "Lacked Number",
    "description": {
      "content": "You are given a string $S$ of length exactly $9$ consisting of digits. One but all digits from `0` to `9` appear exactly once in $S$. Print the only digit missing in $S$.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc248_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a string $S$ of length exactly $9$ consisting of digits. One but all digits from `0` to `9` appear exactly once in $S$.\nPrint the only digit missing in $S$.\n\n## Constraints\n\n*   $S$ is a...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments