stablegradients/pie-gem5-pairs huggingface dataset:
// Slower C++ solution:
#include <iostream>



using namespace std;



int main() {

    

    string a ;

    cin >> a;

    if( a[2]==a[3] && a[4]==a[5]){

        cout << "Yes";}

        else{

            cout << "No";

        }

    

    

    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.3182265641804465x):
#include <stdio.h>



int main()

{

    char b[10];

    scanf("%s", &b);

    if (b[2] == b[3] && b[4] == b[5])

    {

        printf("Yes\n");

    }

     else 

	{

        printf("No\n");

    }

    return 0;

}
// Slower C++ solution:
#include<iostream>

#include<cstdio>

#include<cstring>

#include<algorithm>

#include<cstring>

#include<cmath>

#include<ctime>

#include<vector>

#include<map>

#include<queue>

#include<set>

#include<cstdlib>

#include<ctime>

#include<random>

#define ll long long

using namespace std;



char s[10];



int main(){

    scanf("%s",s+1);

    if (s[3]==s[4]&&s[5]==s[6]) puts("Yes");

    else puts("No");

    return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.269081514656845x):
#include <stdio.h>



int main()

{

    char b[10];

    scanf("%s", &b);

    if (b[2] == b[3] && b[4] == b[5])

    {

        printf("Yes\n");

    }

     else 

	{

        printf("No\n");

    }

    return 0;

}
// Slower C++ solution:
# include <iostream>

# include <cstdio>



using namespace std;



int main(void)

{

    char a[100];

    scanf("%s",a);

    if (a[2]==a[3]&&a[4]==a[5]) printf("Yes\n");

    else printf("No\n");



    return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.2703779729512235x):
#include <stdio.h>



int main()

{

    char b[10];

    scanf("%s", &b);

    if (b[2] == b[3] && b[4] == b[5])

    {

        printf("Yes\n");

    }

     else 

	{

        printf("No\n");

    }

    return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

int main()

{

	string s;

	cin>>s;

	if(s[2]==s[3] && s[4]==s[5])

	{

		cout<<"Yes"<<endl;

	}

	else  cout<<"No"<<endl;

	return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.330865117184138x):
#include <stdio.h>



int main()

{

    char b[10];

    scanf("%s", &b);

    if (b[2] == b[3] && b[4] == b[5])

    {

        printf("Yes\n");

    }

     else 

	{

        printf("No\n");

    }

    return 0;

}
// Slower C++ solution:
#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

typedef unsigned long long ull; 

typedef long double ld;

const ll mod = 1e9 + 7;

const double PI = acos(-1.0);

const double eps = 1e-10;

const ll inf = 1e18;

const int maxn = 200005;

inline ll read() { ll s = 0, w = 1; char ch = getchar(); for (; !isdigit(ch); ch = getchar()) if (ch == '-') w = -1; for (; isdigit(ch); ch = getchar())    s = (s << 1) + (s << 3) + (ch ^ 48); return s * w; }

inline void write(ll x) { if (!x) { putchar('0'); return; } char F[40]; ll tmp = x > 0 ? x : -x; if (x < 0)putchar('-');    int cnt = 0;    while (tmp > 0) { F[cnt++] = tmp % 10 + '0';        tmp /= 10; }    while (cnt > 0)putchar(F[--cnt]); }

inline ll gcd(ll x, ll y) { return y ? gcd(y, x % y) : x; }

ll qpow(ll a, ll b) { ll ans = 1;    while (b) { if (b & 1)    ans *= a;        b >>= 1;        a *= a; }    return ans; }    ll qpow(ll a, ll b, ll mod) { ll ans = 1; while (b) { if (b & 1)(ans *= a) %= mod; b >>= 1; (a *= a) %= mod; }return ans % mod; }

inline int lowbit(int x) { return x & (-x); }



int main(int argc, char const *argv[])

{

	string s;

	cin >> s;

	if (s[2] == s[3] && s[4] == s[5])

	{

		cout << "Yes";

	}

	else

		cout << "No";

	return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.318112319049711x):
#include <stdio.h>



int main()

{

    char b[10];

    scanf("%s", &b);

    if (b[2] == b[3] && b[4] == b[5])

    {

        printf("Yes\n");

    }

     else 

	{

        printf("No\n");

    }

    return 0;

}
// Slower C++ solution:
#include <stdio.h>

#include <iostream>

#include <cstring>

#include <algorithm>

#include <cmath>

#include <queue>

#include <map> 

#include <stack>

#include <sstream>

#include <set>

#pragma GCC optimize(2)



//#define int long long

#define mm(i,v) memset(i,v,sizeof i);

#define mp(a, b) make_pair(a, b)

#define pi acos(-1)

#define fi first

#define se second

//你冷静一点，确认思路再敲！！！ 



using namespace std;

typedef long long ll;

typedef pair<int, int > PII;

priority_queue< PII, vector<PII>, greater<PII> > que;

stringstream ssin; //  ssin << string   while ( ssin >> int)



const int N = 1e5 + 5, M = 2e5 + 5, mod = 1e9 + 9, INF = 0x3f3f3f3f;

char s[N];

int k;



inline int read(){

    char c=getchar();int x=0,f=1;

    while(c<'0'||c>'9'){if(c=='-')f=-1; c=getchar();}

    while(c>='0'&&c<='9'){x=x*10+c-'0'; c=getchar();}

    return x*f;

}



int main()

{

    scanf("%s", s + 1);

    if (s[3] == s[4] && s[5] == s[6]) puts("Yes");

    else puts("No");

    // system("pause");

    return 0;

}

/*

niuniu

1

abca

2

abcabc

2

*/

// Faster C++ solution for the same problem (measured speedup: 5.320263102806159x):
#include <stdio.h>



int main()

{

    char b[10];

    scanf("%s", &b);

    if (b[2] == b[3] && b[4] == b[5])

    {

        printf("Yes\n");

    }

     else 

	{

        printf("No\n");

    }

    return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

int main(){



string s;



cin>>s;



int m=0;



if(s[2]==s[3]){

m++;

}

if(s[4]==s[5]){

m++;

}



if(m==2){

cout<<"Yes"<<endl;

}else{

cout<<"No"<<endl;



}



return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.330726346721543x):
#include <stdio.h>



int main()

{

    char b[10];

    scanf("%s", &b);

    if (b[2] == b[3] && b[4] == b[5])

    {

        printf("Yes\n");

    }

     else 

	{

        printf("No\n");

    }

    return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

#define endl "\n"

#define PI acos(-1)

#define BMW_GTR ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0)



typedef long long ll;

using namespace std;



//ll const n = 50005;



int main()

{

    BMW_GTR;



    string s;

    cin >> s;



    if(s[2] == s[3] && s[4] == s[5])cout << "Yes";

    else cout << "No";



    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.4067099579817555x):
#include <stdio.h>



int main()

{

    char b[10];

    scanf("%s", &b);

    if (b[2] == b[3] && b[4] == b[5])

    {

        printf("Yes\n");

    }

     else 

	{

        printf("No\n");

    }

    return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

typedef long long ll;



int main()

{

    ios_base::sync_with_stdio(false),cin.tie(NULL),cout.tie(NULL);



    string s;



    cin >> s;



    if(s[2] == s[3] && s[4] == s[5])

    {

        cout << "Yes";

    }



    else

    {

        cout << "No";

    }







}


// Faster C++ solution for the same problem (measured speedup: 5.4067099579817555x):
#include <stdio.h>



int main()

{

    char b[10];

    scanf("%s", &b);

    if (b[2] == b[3] && b[4] == b[5])

    {

        printf("Yes\n");

    }

     else 

	{

        printf("No\n");

    }

    return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

#define ll long long

#define nl "\n"

#define pi acos(-1)

#define fast ios_base::sync_with_stdio(false),cin.tie(NULL),cout.tie(NULL)

#define pcase printf("Case %d:\n",ca)

int ca=1;

using namespace std;



int main(){

fast;

    string a;

    cin>>a;

    if(a[2]==a[3]&&a[4]==a[5]){

        cout<<"Yes"<<nl;

    }else{

         cout<<"No"<<nl;



    }

    return 0;

    }


// Faster C++ solution for the same problem (measured speedup: 5.446636910224094x):
#include <stdio.h>



int main()

{

    char b[10];

    scanf("%s", &b);

    if (b[2] == b[3] && b[4] == b[5])

    {

        printf("Yes\n");

    }

     else 

	{

        printf("No\n");

    }

    return 0;

}
// Slower C++ solution:


#include<bits/stdc++.h>





using namespace std;



typedef long long ll;



#define pi 2*acos(0.0)

#define eps 1e-9

const int N = 10000000;

bool isprime[N+1];



void sieve()

{

    memset(isprime,true,sizeof(isprime));

    isprime[0]=isprime[1]=false;



    for(ll i=2; i*i<=N; i++)

    {

        if(isprime[i])

        {

            for(ll j=i*i; j<=N; j+=i)

            {

                isprime[j]=false;

            }

        }

    }

}





int main(void)

{

    //ios_base::sync_with_stdio(false);

    //cin.tie(0);

    //cout.tie(0);





    string s;

    cin>>s;

    if(s[2]==s[3] && s[4]==s[5])

    {

        cout<<"Yes\n";

    }

    else

    {

        cout<<"No\n";

    }







}




// Faster C++ solution for the same problem (measured speedup: 5.361007945343448x):
#include <stdio.h>



int main()

{

    char b[10];

    scanf("%s", &b);

    if (b[2] == b[3] && b[4] == b[5])

    {

        printf("Yes\n");

    }

     else 

	{

        printf("No\n");

    }

    return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std ;

typedef long long ll;

#define cf ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0)

#define fox(i,j,n) for( i=j;i<n;i++)

#define srtar(a,n) sort(a,a+n)

#define srtvec(v) sort(v.begin(),v.end())

#define fauto(x,t) for(auto x: t)

#define mem(n,x) memset(n, x, sizeof(n))

const double pi=acos(-1);



int main()

{

    int t, i ;

    string s;

    cin >> s;

    if(s[3]==s[2] && s[4]==s[5])

        cout << "Yes";

    else

        cout << "No";

    return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.318197790479298x):
#include <stdio.h>



int main()

{

    char b[10];

    scanf("%s", &b);

    if (b[2] == b[3] && b[4] == b[5])

    {

        printf("Yes\n");

    }

     else 

	{

        printf("No\n");

    }

    return 0;

}
// Slower C++ solution:
#include <bits/stdc++.h>

using namespace std;



void solve(){

	string str;

	cin >> str;

	if(str[2] == str[3] && str[4] == str[5]){

		cout << "Yes" << "\n";

	}

	else{

		cout << "No" << "\n";

	}

}



int main(){

	ios_base::sync_with_stdio(false);

	cin.tie(NULL);

	solve();	

}

// Faster C++ solution for the same problem (measured speedup: 5.399060041814323x):
#include <stdio.h>



int main()

{

    char b[10];

    scanf("%s", &b);

    if (b[2] == b[3] && b[4] == b[5])

    {

        printf("Yes\n");

    }

     else 

	{

        printf("No\n");

    }

    return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

#define PI acos(-1)

typedef long long ll;

int main()

{

    char s[10];

    cin>>s;

    if(s[2]==s[3] && s[4]==s[5])

    {

        cout<<"Yes\n";



    }

    else

    {

        cout<<"No\n";

    }

    return 0;

    

}


// Faster C++ solution for the same problem (measured speedup: 5.277374389113299x):
#include <stdio.h>



int main()

{

    char b[10];

    scanf("%s", &b);

    if (b[2] == b[3] && b[4] == b[5])

    {

        printf("Yes\n");

    }

     else 

	{

        printf("No\n");

    }

    return 0;

}
// Slower C++ solution:
#include <bits/stdc++.h>

#define ll long long

#define Arman_Sykot ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)

 

using namespace std;



int main()

{

/*********************/

// Author:

        Arman_Sykot;

/*********************/

    

    string s;

    cin >> s;

    if (s[2] == s[3] && s[4] == s[5])

		cout << "Yes" << "\n";

		

	else

		cout << "No" << "\n";

    

    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.444725892909296x):
#include <stdio.h>



int main()

{

    char b[10];

    scanf("%s", &b);

    if (b[2] == b[3] && b[4] == b[5])

    {

        printf("Yes\n");

    }

     else 

	{

        printf("No\n");

    }

    return 0;

}
// Slower C++ solution:
#include <bits/stdc++.h>

using namespace std;



int main()

{

    ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);

    string s;

    cin >> s;

    if(s[2] == s[3] && s[4] == s[5])

        cout << "Yes";

    else

        cout << "No";

}


// Faster C++ solution for the same problem (measured speedup: 5.4067099579817555x):
#include <stdio.h>



int main()

{

    char b[10];

    scanf("%s", &b);

    if (b[2] == b[3] && b[4] == b[5])

    {

        printf("Yes\n");

    }

     else 

	{

        printf("No\n");

    }

    return 0;

}
// Slower C++ solution:
#include <iostream>

#include<vector>

#include<algorithm>

#include<set>

#include<map>

#include<queue>

#include<deque>

#include<algorithm>

#include<math.h>

using namespace std;



int main()

{

string s ; cin>>s;

if(s.length()<5)

{

    cout<<"No";

    return 0;

}

if(s[2]==s[3]&&s[4]==s[5])

{

    cout<<"Yes";

    return 0 ;

}

cout<<"No";

       return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.332108232288584x):
#include<stdio.h>

int main()

{

	char a[6];

	scanf("%s",a);

	(a[2]==a[3]&&a[4]==a[5]) ? puts("Yes") : puts("No");



	return 0;

}
// Slower C++ solution:
#include<iostream>

#include<string>

using namespace std;

int main()

{

	int x = 1;

	string s;

	cin>> s;

	for(int i = 0;i < s.length();i++) {

		if (s[i+2] == s[i + 3] && s[i + 4] == s[i + 5]) {

			cout << "Yes";

			break;

		}

		else {

			cout << "No";

			break;

		}

	}

	

	return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.332108232288584x):
#include<stdio.h>

int main()

{

	char a[6];

	scanf("%s",a);

	(a[2]==a[3]&&a[4]==a[5]) ? puts("Yes") : puts("No");



	return 0;

}
// Slower C++ solution:
#include <bits/stdc++.h>



using namespace std;



int main() {

    ios::sync_with_stdio(false); cin.tie(0);

    string s;

    cin >> s;

    if (s[2] == s[3] && s[4] == s[5])

        cout << "Yes" << endl;

    else

        cout << "No" << endl;

    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.469009620914839x):
#include<stdio.h>

int main()

{

	char a[6];

	scanf("%s",a);

	(a[2]==a[3]&&a[4]==a[5]) ? puts("Yes") : puts("No");



	return 0;

}
// Slower C++ solution:
#include <bits/stdc++.h> 

using namespace std; 



int main() {

     string str;

     cin >> str;

     

     if(str[2] == str[3] && str[4] == str[5])

          cout << "Yes";

     else

          cout << "No";

     

    return 0; 

} 

// Faster C++ solution for the same problem (measured speedup: 5.332250458676492x):
#include<stdio.h>

int main()

{

	char a[6];

	scanf("%s",a);

	(a[2]==a[3]&&a[4]==a[5]) ? puts("Yes") : puts("No");



	return 0;

}
// Slower C++ solution:
#include <iostream>

#include<vector>

#include<algorithm>

#include<set>

#include<map>

#include<queue>

#include<deque>

#include<algorithm>

#include<math.h>

using namespace std;



int main()

{

string s ; cin>>s;

if(s.length()<5)

{

    cout<<"No";

    return 0;

}

if(s[2]==s[3]&&s[4]==s[5])

{

    cout<<"Yes";

    return 0 ;

}

cout<<"No";

       return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.320260061602637x):
#include<stdio.h>

int main()

{

	char S[10];

	scanf("%s",&S);

	if(S[2]==S[3] && S[4]==S[5])

	{

		printf("Yes");

	}

	else

	{

		printf("No");

	}

	return 0;

}
// Slower C++ solution:
#include<iostream>

#include<string>

using namespace std;

int main()

{

	int x = 1;

	string s;

	cin>> s;

	for(int i = 0;i < s.length();i++) {

		if (s[i+2] == s[i + 3] && s[i + 4] == s[i + 5]) {

			cout << "Yes";

			break;

		}

		else {

			cout << "No";

			break;

		}

	}

	

	return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.320260061602637x):
#include<stdio.h>

int main()

{

	char S[10];

	scanf("%s",&S);

	if(S[2]==S[3] && S[4]==S[5])

	{

		printf("Yes");

	}

	else

	{

		printf("No");

	}

	return 0;

}
// Slower C++ solution:
#include <bits/stdc++.h>



using namespace std;



int main() {

    ios::sync_with_stdio(false); cin.tie(0);

    string s;

    cin >> s;

    if (s[2] == s[3] && s[4] == s[5])

        cout << "Yes" << endl;

    else

        cout << "No" << endl;

    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.45685724953586x):
#include<stdio.h>

int main()

{

	char S[10];

	scanf("%s",&S);

	if(S[2]==S[3] && S[4]==S[5])

	{

		printf("Yes");

	}

	else

	{

		printf("No");

	}

	return 0;

}
// Slower C++ solution:
#include <bits/stdc++.h> 

using namespace std; 



int main() {

     string str;

     cin >> str;

     

     if(str[2] == str[3] && str[4] == str[5])

          cout << "Yes";

     else

          cout << "No";

     

    return 0; 

} 

// Faster C++ solution for the same problem (measured speedup: 5.320401971957477x):
#include<stdio.h>

int main()

{

	char S[10];

	scanf("%s",&S);

	if(S[2]==S[3] && S[4]==S[5])

	{

		printf("Yes");

	}

	else

	{

		printf("No");

	}

	return 0;

}
// Slower C++ solution:
#include <iostream>

#include<vector>

#include<algorithm>

#include<set>

#include<map>

#include<queue>

#include<deque>

#include<algorithm>

#include<math.h>

using namespace std;



int main()

{

string s ; cin>>s;

if(s.length()<5)

{

    cout<<"No";

    return 0;

}

if(s[2]==s[3]&&s[4]==s[5])

{

    cout<<"Yes";

    return 0 ;

}

cout<<"No";

       return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.320260061602637x):
#include <stdio.h>



int main()

{

	char S[6];

	scanf("%s",S);

	if (S[2]==S[3]&&S[4]==S[5])

	{

		printf("Yes");

	}

	else 

	{

		printf("No");

	}

	

	return 0;

}
// Slower C++ solution:
#include<iostream>

#include<string>

using namespace std;

int main()

{

	int x = 1;

	string s;

	cin>> s;

	for(int i = 0;i < s.length();i++) {

		if (s[i+2] == s[i + 3] && s[i + 4] == s[i + 5]) {

			cout << "Yes";

			break;

		}

		else {

			cout << "No";

			break;

		}

	}

	

	return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.320260061602637x):
#include <stdio.h>



int main()

{

	char S[6];

	scanf("%s",S);

	if (S[2]==S[3]&&S[4]==S[5])

	{

		printf("Yes");

	}

	else 

	{

		printf("No");

	}

	

	return 0;

}
// Slower C++ solution:
#include <bits/stdc++.h>



using namespace std;



int main() {

    ios::sync_with_stdio(false); cin.tie(0);

    string s;

    cin >> s;

    if (s[2] == s[3] && s[4] == s[5])

        cout << "Yes" << endl;

    else

        cout << "No" << endl;

    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.45685724953586x):
#include <stdio.h>



int main()

{

	char S[6];

	scanf("%s",S);

	if (S[2]==S[3]&&S[4]==S[5])

	{

		printf("Yes");

	}

	else 

	{

		printf("No");

	}

	

	return 0;

}
// Slower C++ solution:
#include <bits/stdc++.h> 

using namespace std; 



int main() {

     string str;

     cin >> str;

     

     if(str[2] == str[3] && str[4] == str[5])

          cout << "Yes";

     else

          cout << "No";

     

    return 0; 

} 

// Faster C++ solution for the same problem (measured speedup: 5.320401971957477x):
#include <stdio.h>



int main()

{

	char S[6];

	scanf("%s",S);

	if (S[2]==S[3]&&S[4]==S[5])

	{

		printf("Yes");

	}

	else 

	{

		printf("No");

	}

	

	return 0;

}
// Slower C++ solution:
#include <iostream>

#include<vector>

#include<algorithm>

#include<set>

#include<map>

#include<queue>

#include<deque>

#include<algorithm>

#include<math.h>

using namespace std;



int main()

{

string s ; cin>>s;

if(s.length()<5)

{

    cout<<"No";

    return 0;

}

if(s[2]==s[3]&&s[4]==s[5])

{

    cout<<"Yes";

    return 0 ;

}

cout<<"No";

       return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.331900055340509x):
#include <stdio.h>

#include <string.h>



 int main()

{

    char S[255];

    scanf("%s", S);

    if ((S[2] == S[3]) && (S[4] == S[5]))

    {

        puts("Yes");

    }

    else {

        puts("No");

    }

    return 0;

}
// Slower C++ solution:
#include<iostream>

#include<string>

using namespace std;

int main()

{

	int x = 1;

	string s;

	cin>> s;

	for(int i = 0;i < s.length();i++) {

		if (s[i+2] == s[i + 3] && s[i + 4] == s[i + 5]) {

			cout << "Yes";

			break;

		}

		else {

			cout << "No";

			break;

		}

	}

	

	return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.331900055340509x):
#include <stdio.h>

#include <string.h>



 int main()

{

    char S[255];

    scanf("%s", S);

    if ((S[2] == S[3]) && (S[4] == S[5]))

    {

        puts("Yes");

    }

    else {

        puts("No");

    }

    return 0;

}
// Slower C++ solution:
#include <bits/stdc++.h>



using namespace std;



int main() {

    ios::sync_with_stdio(false); cin.tie(0);

    string s;

    cin >> s;

    if (s[2] == s[3] && s[4] == s[5])

        cout << "Yes" << endl;

    else

        cout << "No" << endl;

    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.468796099042763x):
#include <stdio.h>

#include <string.h>



 int main()

{

    char S[255];

    scanf("%s", S);

    if ((S[2] == S[3]) && (S[4] == S[5]))

    {

        puts("Yes");

    }

    else {

        puts("No");

    }

    return 0;

}
// Slower C++ solution:
#include <bits/stdc++.h> 

using namespace std; 



int main() {

     string str;

     cin >> str;

     

     if(str[2] == str[3] && str[4] == str[5])

          cout << "Yes";

     else

          cout << "No";

     

    return 0; 

} 

// Faster C++ solution for the same problem (measured speedup: 5.332042276175593x):
#include <stdio.h>

#include <string.h>



 int main()

{

    char S[255];

    scanf("%s", S);

    if ((S[2] == S[3]) && (S[4] == S[5]))

    {

        puts("Yes");

    }

    else {

        puts("No");

    }

    return 0;

}
// Slower C++ solution:
#include <iostream>

#include<vector>

#include<algorithm>

#include<set>

#include<map>

#include<queue>

#include<deque>

#include<algorithm>

#include<math.h>

using namespace std;



int main()

{

string s ; cin>>s;

if(s.length()<5)

{

    cout<<"No";

    return 0;

}

if(s[2]==s[3]&&s[4]==s[5])

{

    cout<<"Yes";

    return 0 ;

}

cout<<"No";

       return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.318076746805865x):
#include <stdio.h>



int main(){

	char S[6];

	scanf("%s",&S);

	if (S[2]==S[3]&&S[4]==S[5]){

		printf("Yes\n");

	}

	else{

		printf("No\n");

	}

	return 0;

}
// Slower C++ solution:
#include<iostream>

#include<string>

using namespace std;

int main()

{

	int x = 1;

	string s;

	cin>> s;

	for(int i = 0;i < s.length();i++) {

		if (s[i+2] == s[i + 3] && s[i + 4] == s[i + 5]) {

			cout << "Yes";

			break;

		}

		else {

			cout << "No";

			break;

		}

	}

	

	return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.318076746805865x):
#include <stdio.h>



int main(){

	char S[6];

	scanf("%s",&S);

	if (S[2]==S[3]&&S[4]==S[5]){

		printf("Yes\n");

	}

	else{

		printf("No\n");

	}

	return 0;

}
// Slower C++ solution:
#include <bits/stdc++.h>



using namespace std;



int main() {

    ios::sync_with_stdio(false); cin.tie(0);

    string s;

    cin >> s;

    if (s[2] == s[3] && s[4] == s[5])

        cout << "Yes" << endl;

    else

        cout << "No" << endl;

    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.4546178783324155x):
#include <stdio.h>



int main(){

	char S[6];

	scanf("%s",&S);

	if (S[2]==S[3]&&S[4]==S[5]){

		printf("Yes\n");

	}

	else{

		printf("No\n");

	}

	return 0;

}
// Slower C++ solution:
#include <bits/stdc++.h> 

using namespace std; 



int main() {

     string str;

     cin >> str;

     

     if(str[2] == str[3] && str[4] == str[5])

          cout << "Yes";

     else

          cout << "No";

     

    return 0; 

} 

// Faster C++ solution for the same problem (measured speedup: 5.318218598923894x):
#include <stdio.h>



int main(){

	char S[6];

	scanf("%s",&S);

	if (S[2]==S[3]&&S[4]==S[5]){

		printf("Yes\n");

	}

	else{

		printf("No\n");

	}

	return 0;

}