{"raw_statement":[{"iden":"problem statement","content":"We call a $4$\\-digit integer with three or more consecutive same digits, such as $1118$, **good**.\nYou are given a $4$\\-digit integer $N$. Answer the question: Is $N$ **good**?"},{"iden":"constraints","content":"*   $1000 ≤ N ≤ 9999$\n*   $N$ is an integer."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$"},{"iden":"sample input 1","content":"1118"},{"iden":"sample output 1","content":"Yes\n\n$N$ is **good**, since it contains three consecutive $1$."},{"iden":"sample input 2","content":"7777"},{"iden":"sample output 2","content":"Yes\n\nAn integer is also **good** when all the digits are the same."},{"iden":"sample input 3","content":"1234"},{"iden":"sample output 3","content":"No"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}