{"problem":{"name":"Split?","description":{"content":"Bowling pins are numbered $1$ through $10$. The following figure is a top view of the arrangement of the pins: ![image](https://img.atcoder.jp/abc267/0a13f586c544118e1a4651d267a594c1.png) Let us call ","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc267_b"},"statements":[{"statement_type":"Markdown","content":"Bowling pins are numbered $1$ through $10$. The following figure is a top view of the arrangement of the pins:\n![image](https://img.atcoder.jp/abc267/0a13f586c544118e1a4651d267a594c1.png)\nLet us call each part between two dotted lines in the figure a **column**.  \nFor example, Pins $1$ and $5$ belong to the same column, and so do Pin $3$ and $9$.\nWhen some of the pins are knocked down, a special situation called **split** may occur.  \nA placement of the pins is a split if both of the following conditions are satisfied:\n\n*   Pin $1$ is knocked down.\n*   There are two different columns that satisfy both of the following conditions:\n    *   Each of the columns has one or more standing pins.\n    *   There exists a column between these columns such that all pins in the column are knocked down.\n\nSee also Sample Inputs and Outputs for examples.\nNow, you are given a placement of the pins as a string $S$ of length $10$. For $i = 1, \\dots, 10$, the $i$\\-th character of $S$ is `0` if Pin $i$ is knocked down, and is `1` if it is standing.  \nDetermine if the placement of the pins represented by $S$ is a split.\n\n## Constraints\n\n*   $S$ is a string of length $10$ consisting of `0` and `1`.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$S$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc267_b","tags":[],"sample_group":[["0101110101","Yes\n\nIn the figure below, the knocked-down pins are painted gray, and the standing pins are painted white:\n![image](https://img.atcoder.jp/abc267/ec8920ee4b39fac21b10c03e44fa45da.png)\nBetween the column containing a standing pin $5$ and the column containing a standing pin $6$ is a column containing Pins $3$ and $9$. Since Pins $3$ and $9$ are both knocked down, the placement is a split."],["0100101001","Yes\n\n![image](https://img.atcoder.jp/abc267/6ad2c3b72be7f1200386be1fb1eb276c.png)"],["0000100110","No\n\n![image](https://img.atcoder.jp/abc267/2d5b61ba048cf10007ce5b7a984c41a6.png)\nThis placement is not a split."],["1101110101","No\n\n![image](https://img.atcoder.jp/abc267/d3aea8dae7928a938605b7a613bb642c.png)\nThis is not a split because Pin $1$ is not knocked down."]],"created_at":"2026-03-03 11:01:14"}}