Language: C++

/*
	watch me go
*/
#pragma GCC optimize("O3")
//#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define d long double
#define x first
#define y second
#define pii pair<int,int>
#define pb push_back
#define inf (int)1e18
#define init(x,a) memset(x,a,sizeof(x))
#define all(c) c.begin(),c.end()
int const mod=998244353;
int const mod1=1000000007;
int toint(const string &s) {stringstream ss; ss << s; int x; ss >> x; return x;}
string tostring ( int number ) {stringstream ss; ss << number; return ss.str();}
#define out(x) cout<<#x<<" = "<<" "<<x<<"\n";
#define trace1(x)                cerr<<#x<<": "<<x<<endl
#define trace2(x, y)             cerr<<#x<<": "<<x<<" | "<<#y<<": "<<y<<endl
#define trace3(x, y, z)          cerr<<#x<<":" <<x<<" | "<<#y<<": "<<y<<" | "<<#z<<": "<<z<<endl
 #define haha ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
// ******** Using PBDS ********
// typedef tree<long long, null_type, less<long long>, rb_tree_tag, 
//              tree_order_statistics_node_update> 
//                 os; 
// ******** Using PBDS ********
int modexp(int x, int n){
	if(n==0){
		return 1;
	}
	else if(n&1){
		return (modexp((x*x)%mod, n/2)%mod * x%mod)%mod;
	}
	else{
		return (modexp((x*x)%mod, n/2)%mod);
	}
}
 
int modinv(int n)
{
	return modexp(n,mod-2);
}


signed main()
{
    haha
    string s;
    cin>>s;
    
  
    if(s[2]==s[3] && s[4]==s[5])
    cout<<"Yes";
    else
    cout<<"NO";
    
    
    
    
    
    
   
  
}

/*
	watch me go
*/
#pragma GCC optimize("O3")
//#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define d long double
#define x first
#define y second
#define pii pair<int,int>
#define pb push_back
#define inf (int)1e18
#define init(x,a) memset(x,a,sizeof(x))
#define all(c) c.begin(),c.end()
int const mod=998244353;
int const mod1=1000000007;
int toint(const string &s) {stringstream ss; ss << s; int x; ss >> x; return x;}
string tostring ( int number ) {stringstream ss; ss << number; return ss.str();}
#define out(x) cout<<#x<<" = "<<" "<<x<<"\n";
#define trace1(x)                cerr<<#x<<": "<<x<<endl
#define trace2(x, y)             cerr<<#x<<": "<<x<<" | "<<#y<<": "<<y<<endl
#define trace3(x, y, z)          cerr<<#x<<":" <<x<<" | "<<#y<<": "<<y<<" | "<<#z<<": "<<z<<endl
 #define haha ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
// ******** Using PBDS ********
// typedef tree<long long, null_type, less<long long>, rb_tree_tag, 
//              tree_order_statistics_node_update> 
//                 os; 
// ******** Using PBDS ********
int modexp(int x, int n){
	if(n==0){
		return 1;
	}
	else if(n&1){
		return (modexp((x*x)%mod, n/2)%mod * x%mod)%mod;
	}
	else{
		return (modexp((x*x)%mod, n/2)%mod);
	}
}
 
int modinv(int n)
{
	return modexp(n,mod-2);
}


signed main()
{
    haha
    string s;
    cin>>s;
    
  
    if(s[2]==s[3] && s[4]==s[5])
    cout<<"Yes";
    else
    cout<<"No";
    
    
    
    
    
    
   
  
}










 
 








 
 

Compiler output:
a.cc:90:11: error: redefinition of 'const long long int mod'
   90 | int const mod=998244353;
      |           ^~~
a.cc:19:11: note: 'const long long int mod' previously defined here
   19 | int const mod=998244353;
      |           ^~~
a.cc:91:11: error: redefinition of 'const long long int mod1'
   91 | int const mod1=1000000007;
      |           ^~~~
a.cc:20:11: note: 'const long long int mod1' previously defined here
   20 | int const mod1=1000000007;
      |           ^~~~
a.cc:92:5: error: attribute value 'tune=native' was already specified in 'target' attribute
   92 | int toint(const string &s) {stringstream ss; ss << s; int x; ss >> x; return x;}
      |     ^~~~~
a.cc:92:5: error: redefinition of 'long long int toint(const std::string&)'
a.cc:21:5: note: 'long long int toint(const std::string&)' previously defined here
   21 | int toint(const string &s) {stringstream ss; ss << s; int x; ss >> x; return x;}
      |     ^~~~~
a.cc:93:8: error: attribute value 'tune=native' was already specified in 'target' attribute
   93 | string tostring ( int number ) {stringstream ss; ss << number; return ss.str();}
      |        ^~~~~~~~
a.cc:93:8: error: redefinition of 'std::string tostring(long long int)'
a.cc:22:8: note: 'std::string tostring(long long int)' previously defined here
   22 | string tostring ( int number ) {stringstream ss; ss << number; return ss.str();}
      |        ^~~~~~~~
a.cc:104:5: error: attribute value 'tune=native' was already specified in 'target' attribute
  104 | int modexp(int x, int n){
      |     ^~~~~~
a.cc:104:5: error: redefinition of 'long long int modexp(long long int, long long int)'
a.cc:33:5: note: 'long long int modexp(long long int, long long int)' previously defined here
   33 | int modexp(int x, int n){
      |     ^~~~~~
a.cc:116:5: error: attribute value 'tune=native' was already specified in 'target' attribute
  116 | int modinv(int n)
      |     ^~~~~~
a.cc:116:5: error: redefinition of 'long long int modinv(long long int)'
a.cc:45:5: note: 'long long int modinv(long long int)' previously defined here
   45 | int modinv(int n)
      |     ^~~~~~
a.cc:122:8: error: attribute value 'tune=native' was already specified in 'target' attribute
  122 | signed main()
      |        ^~~~
a.cc:122:8: error: redefinition of 'int main()'
a.cc:51:8: note: 'int main()' previously defined here
   51 | signed main()
      |        ^~~~