#abc079a. [abc079_a]Good Integer

[abc079_a]Good Integer

Problem Statement

We call a 44-digit integer with three or more consecutive same digits, such as 11181118, good.

You are given a 44-digit integer NN. Answer the question: Is NN good?

Constraints

  • 1000N99991000 ≤ N ≤ 9999
  • NN is an integer.

Input

Input is given from Standard Input in the following format:

NN

Output

If NN is good, print Yes; otherwise, print No.


Sample Input 1

1118

Sample Output 1

Yes

NN is good, since it contains three consecutive 11.


Sample Input 2

7777

Sample Output 2

Yes

An integer is also good when all the digits are the same.


Sample Input 3

1234

Sample Output 3

No