AT_abc396_a [ABC396A] Triple Four
Description
You are given an integer sequence of length $ N $ : $ A = (A_1,A_2,\ldots,A_N) $ .
Determine whether there is a place in $ A $ where the same element appears three or more times in a row.
More formally, determine whether there exists an integer $ i $ with $ 1 \le i \le N-2 $ such that $ A_i = A_{i+1} = A_{i+2} $ .
Input Format
The input is given from Standard Input in the following format:
> $ N $ $ A_1 $ $ A_2 $ $ \ldots $ $ A_N $
Output Format
If there is a place in $ A $ where the same element appears three or more times in a row, print `Yes`. Otherwise, print `No`.
Explanation/Hint
### Sample Explanation 1
We have $ A=(1,4,4,4,2) $ . There is a place where $ 4 $ appears three times in a row, so print `Yes`.
### Sample Explanation 2
We have $ A=(2,4,4,2,2,4) $ . There is no place where the same element appears three or more times in a row, so print `No`.
### Constraints
- $ 3 \le N \le 100 $
- $ 1 \le A_i \le 100 $
- All input values are integers.