

Time Limit: 2 sec / Memory Limit: 1024 MB
配点 : 100 点
問題文
ある長さ 6 の英小文字からなる文字列がcoffeeに似ているとは、3 文字目と 4 文字目が等しく、5 文字目と 6 文字目も等しいことを言います。
与えられる文字列 S がcoffeeに似ているか判定してください。
制約
- S は長さ 6 の英小文字からなる文字列である。
入力
入力は以下の形式で標準入力から与えられる。
S
出力
S がcoffeeに似ている場合 Yes
を、そうでない場合 No
を出力せよ。
入力例 1
sippuu
出力例 1
Yes
sippuu
は 3 文字目と 4 文字目が等しく、5 文字目と 6 文字目も等しいです。
入力例 2
iphone
出力例 2
No
入力例 3
coffee
出力例 3
Yes
Score : 100 points
Problem Statement
A string of length 6 consisting of lowercase English letters is said to be coffee-like if and only if its 3-rd and 4-th characters are equal and its 5-th and 6-th characters are also equal.
Given a string S, determine whether it is coffee-like.
Constraints
- S is a string of length 6 consisting of lowercase English letters.
Input
Input is given from Standard Input in the following format:
S
Output
If S is coffee-like, print Yes
; otherwise, print No
.
Sample Input 1
sippuu
Sample Output 1
Yes
In sippuu
, the 3-rd and 4-th characters are equal, and the 5-th and 6-th characters are also equal.
Sample Input 2
iphone
Sample Output 2
No
Sample Input 3
coffee
Sample Output 3
Yes