#abc160a. [abc160_a]Coffee
[abc160_a]Coffee
Problem Statement
A string of length consisting of lowercase English letters is said to be coffee-like if and only if its -rd and -th characters are equal and its -th and -th characters are also equal.
Given a string , determine whether it is coffee-like.
Constraints
- is a string of length consisting of lowercase English letters.
Input
Input is given from Standard Input in the following format:
Output
If is coffee-like, print Yes
; otherwise, print No
.
Sample Input 1
sippuu
Sample Output 1
Yes
In sippuu
, the -rd and -th characters are equal, and the -th and -th characters are also equal.
Sample Input 2
iphone
Sample Output 2
No
Sample Input 3
coffee
Sample Output 3
Yes