{"raw_statement":[{"iden":"problem statement","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"},{"iden":"constraints","content":"*   $S$ consists of uppercase English letters and digits.\n*   The length of $S$ is between $1$ and $10$, inclusive."},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$S$"},{"iden":"sample input 1","content":"Q142857Z"},{"iden":"sample output 1","content":"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."},{"iden":"sample input 2","content":"AB912278C"},{"iden":"sample output 2","content":"No\n\n`AB` is not an uppercase English letter, so $S$ does not satisfy the condition."},{"iden":"sample input 3","content":"X900000"},{"iden":"sample output 3","content":"No\n\nThe last character of $S$ is not an uppercase English letter, so $S$ does not satisfy the condition."},{"iden":"sample input 4","content":"K012345K"},{"iden":"sample output 4","content":"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."}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}