{"raw_statement":[{"iden":"problem statement","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."},{"iden":"constraints","content":"*   $S$ is a string of length $10$ consisting of `0` and `1`."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$S$"},{"iden":"sample input 1","content":"0101110101"},{"iden":"sample output 1","content":"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."},{"iden":"sample input 2","content":"0100101001"},{"iden":"sample output 2","content":"Yes\n\n![image](https://img.atcoder.jp/abc267/6ad2c3b72be7f1200386be1fb1eb276c.png)"},{"iden":"sample input 3","content":"0000100110"},{"iden":"sample output 3","content":"No\n\n![image](https://img.atcoder.jp/abc267/2d5b61ba048cf10007ce5b7a984c41a6.png)\nThis placement is not a split."},{"iden":"sample input 4","content":"1101110101"},{"iden":"sample output 4","content":"No\n\n![image](https://img.atcoder.jp/abc267/d3aea8dae7928a938605b7a613bb642c.png)\nThis is not a split because Pin $1$ is not knocked down."}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}