Problem:
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

Solution in C# (Mono 4.6.2.0) (judge verdict: Accepted)

using System;
using System.Text;
using System.Collections.Generic;

namespace cskyopro {
    class Solver : Reader {
        public void Solve() {
            string S = Next();
            if (S[2] == S[3] && S[4] == S[5]) {
                Console.WriteLine("Yes");
            } else {
                Console.WriteLine("No");
            }
        }
    }

    class Mint {
        const long MOD = 1000000007;
        private long n;

        public Mint(long n) {
            this.n = n;
        }

        public static Mint operator +(Mint a, Mint b) => new Mint((a.n + b.n) % 5);
        public static Mint operator -(Mint a, Mint b) => new Mint((a.n + 5 - b.n) % 5L);
        public static Mint operator *(Mint a, Mint b) => new Mint((a.n * b.n) % 5);
        public static implicit operator Mint(int n) => new Mint(n);

        public override string ToString() => n.ToString();
    }

    class Reader {
        public string Next() {
            StringBuilder sb = new StringBuilder();
            while (true) {
                int x = Console.Read();
                if (x == -1 || x == ' ' || x == '\n') break;
                sb.Append((char)x);
            }
            return sb.ToString();
        }

        public int NextInt() => int.Parse(Next());
        public long NextLong() => long.Parse(Next());
        public double NextDouble() => double.Parse(Next());
    }

    class Program {
        static void Main(string[] args) => new Solver().Solve();
    }
}