{"problem":{"name":"Sandwich Number","description":{"content":"You are given a string $S$ consisting of uppercase English letters and digits. Determine whether $S$ satisfies the following condition. *   $S$ is a concatenation of the following characters and stri","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc281_b"},"statements":[{"statement_type":"Markdown","content":"You are given a string $S$ consisting of uppercase English letters and digits. Determine whether $S$ satisfies the following condition.\n\n*   $S$ is a concatenation of the following characters and string in the order listed.\n    *   An uppercase English letter\n    *   A string of length $6$ that is a decimal representation of an integer between $100000$ and $999999$, inclusive\n    *   An uppercase English letter\n\n## Constraints\n\n*   $S$ consists of uppercase English letters and digits.\n*   The length of $S$ is between $1$ and $10$, inclusive.\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":"abc281_b","tags":[],"sample_group":[["Q142857Z","Yes\n\n$S$ is a concatenation of `Q`, `142857`, and `Z` in this order.  \n`Q` and `Z` are uppercase English letters, and `142857` is a string of length $6$ that is a decimal representation of an integer between $100000$ and $999999$, so $S$ satisfies the condition."],["AB912278C","No\n\n`AB` is not an uppercase English letter, so $S$ does not satisfy the condition."],["X900000","No\n\nThe last character of $S$ is not an uppercase English letter, so $S$ does not satisfy the condition."],["K012345K","No\n\n`012345` is not a string of length $6$ that is a decimal representation of an integer between $100000$ and $999999$, so $S$ does not satisfy the condition."]],"created_at":"2026-03-03 11:01:14"}}