{"problem":{"name":"Rightmost","description":{"content":"You are given a string $S$ consisting of lowercase English letters.   If `a` appears in $S$, print the last index at which it appears; otherwise, print $-1$. (The index starts at $1$.)","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc276_a"},"statements":[{"statement_type":"Markdown","content":"You are given a string $S$ consisting of lowercase English letters.  \nIf `a` appears in $S$, print the last index at which it appears; otherwise, print $-1$. (The index starts at $1$.)\n\n## Constraints\n\n*   $S$ is a string of length between $1$ and $100$ (inclusive) consisting of lowercase English letters.\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":"abc276_a","tags":[],"sample_group":[["abcdaxayz","7\n\n`a` appears three times in $S$. The last occurrence is at index $7$, so you should print $7$."],["bcbbbz","\\-1\n\n`a` does not appear in $S$, so you should print $-1$."],["aaaaa","5"]],"created_at":"2026-03-03 11:01:13"}}