Score : $100$ points
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?
Input is given from Standard Input in the following format:
$N$
If $N$ is good, print Yes
; otherwise, print No
.
1118
Yes
$N$ is good, since it contains three consecutive $1$.
7777
Yes
An integer is also good when all the digits are the same.
1234
No