{"problem":{"name":"Good Integer","description":{"content":"We call a $4$\\-digit integer with three or more consecutive same digits, such as $1118$, **good**. You are given a $4$\\-digit integer $N$. Answer the question: Is $N$ **good**?","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc079_a"},"statements":[{"statement_type":"Markdown","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**?\n\n## Constraints\n\n*   $1000 ≤ N ≤ 9999$\n*   $N$ is an integer.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc079_a","tags":[],"sample_group":[["1118","Yes\n\n$N$ is **good**, since it contains three consecutive $1$."],["7777","Yes\n\nAn integer is also **good** when all the digits are the same."],["1234","No"]],"created_at":"2026-03-03 11:01:14"}}