{"problem":{"name":"Unbalanced","description":{"content":"Given a string $t$, we will call it _unbalanced_ if and only if the length of $t$ is at least $2$, and more than half of the letters in $t$ are the same. For example, both `voodoo` and `melee` are unb","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"arc059_b"},"statements":[{"statement_type":"Markdown","content":"Given a string $t$, we will call it _unbalanced_ if and only if the length of $t$ is at least $2$, and more than half of the letters in $t$ are the same. For example, both `voodoo` and `melee` are unbalanced, while neither `noon` nor `a` is.\nYou are given a string $s$ consisting of lowercase letters. Determine if there exists a (contiguous) substring of $s$ that is unbalanced. If the answer is positive, show a position where such a substring occurs in $s$.\n\n## Constraints\n\n*   $2 ≦ |s| ≦ 10^5$\n*   $s$ consists of lowercase letters.\n\n## Input\n\nThe input is given from Standard Input in the following format:\n\n$s$\n\n## Partial Score\n\n*   $200$ points will be awarded for passing the test set satisfying $2 ≦ N ≦ 100$.\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"arc059_b","tags":[],"sample_group":[["needed","2 5\n\nThe string $s_2 s_3 s_4 s_5$ $=$ `eede` is unbalanced. There are also other unbalanced substrings. For example, the output `2 6` will also be accepted."],["atcoder","\\-1 -1\n\nThe string `atcoder` contains no unbalanced substring."]],"created_at":"2026-03-03 11:01:13"}}