Coffee

AtCoder
IDabc160_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
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
API Response (JSON)
{
  "problem": {
    "name": "Coffee",
    "description": {
      "content": "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 equ",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc160_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "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 equ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments