{"problem":{"name":"Past ABCs","description":{"content":"You are given a string $S$ of length $6$. It is guaranteed that the first three characters of $S$ are `ABC` and the last three characters are digits. Determine if $S$ is the abbreviation of a contest ","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc350_a"},"statements":[{"statement_type":"Markdown","content":"You are given a string $S$ of length $6$. It is guaranteed that the first three characters of $S$ are `ABC` and the last three characters are digits.\nDetermine if $S$ is the abbreviation of a contest held and concluded on AtCoder before the start of this contest.\nHere, a string $T$ is \"the abbreviation of a contest held and concluded on AtCoder before the start of this contest\" if and only if it equals one of the following $348$ strings:\n`ABC001`, `ABC002`, $\\ldots$, `ABC314`, `ABC315`, `ABC317`, `ABC318`, $\\ldots$, `ABC348`, `ABC349`.\nNote that `ABC316` is not included.\n\n## Constraints\n\n*   $S$ is a string of length $6$ where the first three characters are `ABC` and the last three characters are digits.\n\n## Input\n\nThe input is given from Standard Input in the following format:\n\n$S$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc350_a","tags":[],"sample_group":[["ABC349","Yes\n\n`ABC349` is the abbreviation of a contest held and concluded on AtCoder last week."],["ABC350","No\n\n`ABC350` is this contest, which has not concluded yet."],["ABC316","No\n\n`ABC316` was not held on AtCoder."]],"created_at":"2026-03-03 11:01:13"}}