stablegradients/pie-gem5-pairs huggingface dataset:
// 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.420967178712467x):
#include <stdio.h>



int main()

{

	char S[7];

	scanf ("%s", &S);

	

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

	

	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.420967178712467x):
#include <stdio.h>



int main()

{

	char S[7];

	scanf ("%s", &S);

	

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

	

	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.46099941630868x):
#include <stdio.h>



int main()

{

	char S[7];

	scanf ("%s", &S);

	

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

	

	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.375144652178077x):
#include <stdio.h>



int main()

{

	char S[7];

	scanf ("%s", &S);

	

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

	

	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.332221609100548x):
#include <stdio.h>



int main()

{

	char S[7];

	scanf ("%s", &S);

	

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

	

	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.413297090102972x):
#include <stdio.h>



int main()

{

	char S[7];

	scanf ("%s", &S);

	

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

	

	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.291290558489671x):
#include <stdio.h>



int main()

{

	char S[7];

	scanf ("%s", &S);

	

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

	

	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.459083359737867x):
#include <stdio.h>



int main()

{

	char S[7];

	scanf ("%s", &S);

	

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

	

	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.420967178712467x):
#include <stdio.h>



int main()

{

	char S[7];

	scanf ("%s", &S);

	

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

	

	return 0;

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

#include <iostream>

using namespace  std;

const int N=1E5+5;



int main() {

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.3182265641804465x):
#include <stdio.h>

int main(){

	char yeet[10];

	scanf("%s",&yeet);

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

		printf("Yes\n");

	}

	else{

		printf("No\n");

	}

	

		

return 0;	

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

using namespace std;







int main()

{

string x;

cin>>x;

if(x[2]==x[3] && x[4]==x[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 yeet[10];

	scanf("%s",&yeet);

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

		printf("Yes\n");

	}

	else{

		printf("No\n");

	}

	

		

return 0;	

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

using namespace std;

string s;

int main(){

	ios::sync_with_stdio(0);

	cin.tie(0);

	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.405300435459292x):
#include <stdio.h>

int main(){

	char yeet[10];

	scanf("%s",&yeet);

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

		printf("Yes\n");

	}

	else{

		printf("No\n");

	}

	

		

return 0;	

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

using namespace std;

int main()

{

    char s[10];

    scanf("%s",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.280614728379142x):
#include <stdio.h>

int main(){

	char yeet[10];

	scanf("%s",&yeet);

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

		printf("Yes\n");

	}

	else{

		printf("No\n");

	}

	

		

return 0;	

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

using namespace std;

typedef pair<int,int> pii;

typedef long long int lld;

#define sq(x) x*x

#define fr(i,m,n) for(i=m;i<n;i++)

#define vec vector<int>

#define sint set<int>

#define qint queue<int>

#define mip map<int,int>

#define pint priority_queue<int>

#define pb push_back

#define pp pop_back()

#define ft first

#define sd second

#define full(v) v.begin(),v.end()



int main()

{

    int i,j,k,a,b,c,x,y,z,n,m,t;

    string s,u,v;

    cin>>s;

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

    else cout<<"No"<<endl;

}


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

int main(){

	char yeet[10];

	scanf("%s",&yeet);

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

		printf("Yes\n");

	}

	else{

		printf("No\n");

	}

	

		

return 0;	

}
// 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 yeet[10];

	scanf("%s",&yeet);

	if (yeet[2] == yeet[3] && yeet[4] == yeet[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 yeet[10];

	scanf("%s",&yeet);

	if (yeet[2] == yeet[3] && yeet[4] == yeet[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 yeet[10];

	scanf("%s",&yeet);

	if (yeet[2] == yeet[3] && yeet[4] == yeet[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 yeet[10];

	scanf("%s",&yeet);

	if (yeet[2] == yeet[3] && yeet[4] == yeet[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 yeet[10];

	scanf("%s",&yeet);

	if (yeet[2] == yeet[3] && yeet[4] == yeet[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 yeet[10];

	scanf("%s",&yeet);

	if (yeet[2] == yeet[3] && yeet[4] == yeet[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 yeet[10];

	scanf("%s",&yeet);

	if (yeet[2] == yeet[3] && yeet[4] == yeet[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 yeet[10];

	scanf("%s",&yeet);

	if (yeet[2] == yeet[3] && yeet[4] == yeet[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 yeet[10];

	scanf("%s",&yeet);

	if (yeet[2] == yeet[3] && yeet[4] == yeet[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 yeet[10];

	scanf("%s",&yeet);

	if (yeet[2] == yeet[3] && yeet[4] == yeet[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 yeet[10];

	scanf("%s",&yeet);

	if (yeet[2] == yeet[3] && yeet[4] == yeet[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 yeet[10];

	scanf("%s",&yeet);

	if (yeet[2] == yeet[3] && yeet[4] == yeet[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 yeet[10];

	scanf("%s",&yeet);

	if (yeet[2] == yeet[3] && yeet[4] == yeet[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 yeet[10];

	scanf("%s",&yeet);

	if (yeet[2] == yeet[3] && yeet[4] == yeet[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 yeet[10];

	scanf("%s",&yeet);

	if (yeet[2] == yeet[3] && yeet[4] == yeet[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 yeet[10];

	scanf("%s",&yeet);

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

		printf("Yes\n");

	}

	else{

		printf("No\n");

	}

	

		

return 0;	

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

#include <iostream>

using namespace  std;

const int N=1E5+5;



int main() {

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.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>

using namespace std;







int main()

{

string x;

cin>>x;

if(x[2]==x[3] && x[4]==x[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<bits/stdc++.h>

using namespace std;

string s;

int main(){

	ios::sync_with_stdio(0);

	cin.tie(0);

	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.405300435459292x):
#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()

{

    char s[10];

    scanf("%s",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.280614728379142x):
#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 pair<int,int> pii;

typedef long long int lld;

#define sq(x) x*x

#define fr(i,m,n) for(i=m;i<n;i++)

#define vec vector<int>

#define sint set<int>

#define qint queue<int>

#define mip map<int,int>

#define pint priority_queue<int>

#define pb push_back

#define pp pop_back()

#define ft first

#define sd second

#define full(v) v.begin(),v.end()



int main()

{

    int i,j,k,a,b,c,x,y,z,n,m,t;

    string s,u,v;

    cin>>s;

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

    else cout<<"No"<<endl;

}


// Faster C++ solution for the same problem (measured speedup: 5.371188319870467x):
#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;

}