AtCoder Beginner Contest 160
A
Coffee
AtCoder
⌀ 0
原题
←B →
翻译中…

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.

翻译中…

样例

Input #1
sippuu
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.
Input #2
iphone
Output #2
No
Input #3
coffee
Output #3
Yes
题目信息
题号
abc160_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。