题目描述
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?
-----Constraints-----
- 1000 ≤ N ≤ 9999
- N is an integer.
-----Input-----
Input is given from Standard Input in the following format:
N
-----Output-----
If N is good, print Yes; otherwise, print No.
-----Sample Input-----
1118
-----Sample Output-----
Yes
N is good, since it contains three consecutive 1.
输入格式
见题面
输出格式
见题面
样例输入
1118
样例输出
Yes