100 atcoder#ABC160A. [ABC160A] Coffee
[ABC160A] Coffee
Score : points
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
.
sippuu
Yes
In sippuu
, the -rd and -th characters are equal, and the -th and -th characters are also equal.
iphone
No
coffee
Yes