Language: C++

/*
 *  author : Atul Anand   
 *  created on : Sat Mar 28 2020
 */

import java.io.*;
import java.util.*;

public class Main{

    public static void main(String[] args) throws IOException {
        String s = in.next();
        if(s.charAt(2) == s.charAt(3) && s.charAt(4) == s.charAt(5)){
            println("Yes");
        }
        else{
            println("No");
        }
        
        in.close();
        out.close();
    }

    static int MIN = Integer.MIN_VALUE;
    static int MAX = Integer.MAX_VALUE;
    static Reader in = new Reader();
    static PrintWriter out = new PrintWriter(System.out);

    static void read(int arr[], int N) throws IOException { 
    	for(int i = 0; i < N; i++){ 
    		arr[i] = in.nextInt(); 
    	} 
    }
    
    static void read(long arr[], int N) throws IOException { 
    	for(int i = 0; i < N; i++){ 
    		arr[i] = in.nextLong(); 
    	} 
    }
    
    static void read(String arr[], int N) throws IOException { 
    	for(int i = 0; i < N; i++){ 
    		arr[i] = in.next(); 
    	} 
    }
    
    static void print(Object O) {  
    	out.print(O); 
    }
    
    static void println(Object O) { 
    	out.println(O); 
    }
    
    static void println(int arr[]) { 
    	for(int i = 0; i < arr.length; i++){ 
    		print(arr[i]+" "); 
    	} 
    	println(""); 
    }

    static void println(int arr[][]) { 
    	for(int i = 0; i < arr.length; i++){ 
    		println(arr[i]); 
    	}
    }
    
    static void debug(Object O) { 
    	System.out.println(O); 
    }
}

class Reader {
    BufferedReader reader;
    StringTokenizer tokenizer;

    Reader() {
        reader = new BufferedReader(new InputStreamReader(System.in));
        tokenizer = new StringTokenizer("");
    }

    String next() throws IOException {
        while (!tokenizer.hasMoreTokens() ) { 
            tokenizer = new StringTokenizer(reader.readLine()); 
        }
        return tokenizer.nextToken();
    }

    int nextInt() throws IOException { 
        return Integer.parseInt(next()); 
    }
    
    double nextDouble() throws IOException { 
        return Double.parseDouble(next());
    }
    
    long nextLong() throws IOException { 
        return Long.parseLong(next()); 
    }
    
    String nextLine() throws IOException { 
        return reader.readLine(); 
    }
    
    void close() throws IOException { 
        reader.close(); 
    }
}

Compiler output:
a.cc:6:1: error: 'import' does not name a type
    6 | import java.io.*;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: 'import' does not name a type
    7 | import java.util.*;
      | ^~~~~~
a.cc:7:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:9:1: error: expected unqualified-id before 'public'
    9 | public class Main{
      | ^~~~~~
a.cc:74:5: error: 'BufferedReader' does not name a type
   74 |     BufferedReader reader;
      |     ^~~~~~~~~~~~~~
a.cc:75:5: error: 'StringTokenizer' does not name a type
   75 |     StringTokenizer tokenizer;
      |     ^~~~~~~~~~~~~~~
a.cc:82:5: error: 'String' does not name a type
   82 |     String next() throws IOException {
      |     ^~~~~~
a.cc:89:17: error: expected ';' at end of member declaration
   89 |     int nextInt() throws IOException {
      |                 ^
      |                  ;
a.cc:89:19: error: 'throws' does not name a type
   89 |     int nextInt() throws IOException {
      |                   ^~~~~~
a.cc:93:23: error: expected ';' at end of member declaration
   93 |     double nextDouble() throws IOException {
      |                       ^
      |                        ;
a.cc:93:25: error: 'throws' does not name a type
   93 |     double nextDouble() throws IOException {
      |                         ^~~~~~
a.cc:97:19: error: expected ';' at end of member declaration
   97 |     long nextLong() throws IOException {
      |                   ^
      |                    ;
a.cc:97:21: error: 'throws' does not name a type
   97 |     long nextLong() throws IOException {
      |                     ^~~~~~
a.cc:101:5: error: 'String' does not name a type
  101 |     String nextLine() throws IOException {
      |     ^~~~~~
a.cc:105:16: error: expected ';' at end of member declaration
  105 |     void close() throws IOException {
      |                ^
      |                 ;
a.cc:105:18: error: 'throws' does not name a type
  105 |     void close() throws IOException {
      |                  ^~~~~~
a.cc:108:2: error: expected ';' after class definition
  108 | }
      |  ^
      |  ;
a.cc: In constructor 'Reader::Reader()':
a.cc:78:9: error: 'reader' was not declared in this scope; did you mean 'Reader'?
   78 |         reader = new BufferedReader(new InputStreamReader(System.in));
      |         ^~~~~~
      |         Reader
a.cc:78:22: error: expected type-specifier before 'BufferedReader'
   78 |         reader = new BufferedReader(new InputStreamReader(System.in));
      |                      ^~~~~~~~~~~~~~
a.cc:79:9: error: 'tokenizer' was not declared in this scope
   79 |         tokenizer = new StringTokenizer("");
      |         ^~~~~~~~~
a.cc:79:25: error: expected type-specifier before 'StringTokenizer'
   79 |         tokenizer = new StringTokenizer("");
      |                         ^~~~~~~~~~~~~~~