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 (Python):
s= input()
if s[2]==s[3] and s[4]==s[5]:
	print("Yes")
else:
	print("No")

Solution (Python):
s = input()

if len(s) == 6 and s[2]==s[3] and s[4]== s[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
str = input()
if str[2] == str[3] and str[4] == str[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
input_str=input()
if input_str[2]== input_str[3] and  input_str[4]== input_str[5] :
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()

if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("No")

Solution (Python):


MOD = 10**9
def make_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            divisors.append(i)
            if i != n // i:
                divisors.append(n//i)
    return divisors

S = input()
if S[2]==S[3] and S[4]==S[5]: print('Yes')
else: print('No')

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  

s = ns()
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):

coffee = str(input())

if coffee[2] == coffee[3] and coffee[4] == coffee[5]:
    print ("Yes")
else:
    print("No")

Solution (Python):
S = input()
if S[2]==S[3] and S[4]==S[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
S=input()
if len(set(S[2:4]))==1 and len(set(S[4:]))==1:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
a,b,c,d,e,f=input()
if c==d and e==f:
  print("Yes")
else:
  print("No")

Solution (Python):
a=input()
if a[2]==a[3] and a[4]==a[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
def main():
    s = input()
    if s[2] == s[3] and s[4] == s[5]:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

Solution (Python):
s=input()
if s[2]==s[3] and s[4]==s[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
if(s[2] == s[3] and s[4] == s[5]):
    print("Yes")
    exit()
print("No")

Solution (Python):



import sys
sys.setrecursionlimit(10000000)


dxdy=((1,0),(0,1))

def pin(type=int):
    return map(type,input().rstrip().split())

def resolve():
    s=input()
    cond= s[2]==s[3] and s[4]==s[5]
    print(["No","Yes"][cond])
"""         


"""
"""
お前カッコ閉じ,るの忘れてるだろ
"""
import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """sippuu"""
        output = """Yes"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """iphone"""
        output = """No"""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """coffee"""
        output = """Yes"""
        self.assertIO(input, output)


if __name__ == "__main__":
    resolve()

Solution (Python):
s = input()
cond = s[2] == s[3] and s[4] == s[5]
print('Yes' if cond else 'No')

Solution (Python):
s=input()
ans="No"
if s[2]==s[3] and s[-2]==s[-1]:
    ans="Yes"
print(ans)

Solution (Python):
s = input()
print('Yes' if s[2] == s[3] and s[4] == s[5] else 'No')

Solution (Python):
str = input().rstrip()                      
if str[2] == str[3] and str[4] == str[5]:   
  print("Yes")                              
else:                                       
  print("No")

Solution (Python):
s  = input()
if s[2]==s[3] and s[4]==s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
if S[2] != S[3] or S[4] != S[5]:
  print("No")
else:
  print("Yes")

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
    print("Yes")
else:
    print("No")

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(S: str):
    if S[2] == S[3] and S[4] == S[5]:
        print(YES)
    else: print(NO)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  

    solve(S)

if __name__ == '__main__':
    main()

Solution (Python):
def islikecoffee(s):
    return s[2] == s[3] and s[4] == s[5]

def test():
    ans = islikecoffee('coffee'), islikecoffee('abccdd'), islikecoffee('abccds')
    print(ans)

print('Yes' if islikecoffee(input()) else 'No')

Solution (Python):
def main():
    S = input()
    print("Yes" if S[2] == S[3] and S[4] == S[5] else "No")
    return


main()

Solution (Python):
s=input()

if(s[2]==s[3]  and s[4]==s[5]):
    print("Yes")
else:
    print("No")

Solution (Python):
s = list(input())
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()

if S[2] == S[3] and S[4] == S[5]:
    print('Yes')
    exit()
print('No')

Solution (Python):
N = input()

if N[2] == N[3]:
    if N[4] == N[5]:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Solution (Python):
n=input()
  
if( n[2] == n[3] and n[4] == n[5] ):
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()
if S[2]==S[3] and S[4]==S[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
a, b, c, d, e, f = map(str, input())
S = a + b + c + d + e + f

if c == d:
    if e == f:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Solution (Python):
s = list(input())
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
str = input()

if (str[2] == str[3]) and (str[4] == str[5]):
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
ans = 'Yes' if s[2] == s[3] and s[4] == s[5] else 'No'
print(ans)

Solution (Python):
S=list(input())

if S[2]==S[3] and S[4]==S[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()

if S[2] == S[3] and S[4] == S[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
cf = str(input())

if cf[2] == cf[3]:
	 if cf[4] == cf[5]:
	 	print("Yes")
	 else:
	 	print("No")
else:
	print("No")

Solution (Python):
s = str(input()) 
if s[2] == s[3] and s[4] == s[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
S=input()
M=list(S)
print("Yes" if M[2]==M[3] and M[4]==M[5] else "No")

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
s=[i for i in input()]
if s[2]==s[3] and s[4]==s[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
a=input()
if (a[2]==a[3])&(a[4]==a[5]):
    print("Yes")
else:
    print("No")

Solution (Python):
s=input()
if s[2]==s[3] and s[4]==s[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
word = list(input())
if word[2]==word[3] and word[4]==word[5]:
    print('Yes')
else: print('No')

Solution (Python):
S = input()

if S[2] == S[3] and S[4] == S[5]:
  print('Yes')
else:
  print('No')

Solution (Python):


s = input()

if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
	print('Yes')
else:
	print('No')

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
	print('Yes')
else:
	print('No')

Solution (Python):
import sys

s=sys.stdin.readline()

if s[2]==s[3] and s[4]==s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
a=input()
if a[2]==a[3] and a[4]==a[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
def str_input():
    string = input()
    n = len(string)
    return list(string[:n])

chars = str_input()


if chars[2] == chars[3] and chars[4] == chars[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
s=input()
print('Yes' if s[2]==s[3] and s[4]==s[5] else 'No')

Solution (Python):
S = input()
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
a = input()
 
if a[2] == a[3] and a[4] == a[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
    exit()

print('No')

Solution (Python):
S = input()

if S[2] == S[3] and S[4] == S[5] :
  print('Yes')

else :
  print('No')

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
s=input()
flag=1
if list(s)[2]==list(s)[3]:
  if list(s)[4]==list(s)[5]:
    flag=0
if flag==0:
  print("Yes")
else:
  print("No")

Solution (Python):
S=list(input())
if S[2]==S[3] and S[4]==S[5] :
    print("Yes")
else:
    print("No")

Solution (Python):
s=input()
if s[2]==s[3] and s[4]==s[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
def main():
  x = input()
  if(len(x) == 6 and x.islower()):
    if(x[2] == x[3] and x[4] == x[5]):
        print("Yes")
    else:
      print("No")
    
if __name__ == "__main__":
  main()

Solution (Python):
S = input()
if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
line = input().rstrip()

three = line[2]
four = line[3]

five = line[4]
six = line[5]

if three == four:
    if five == six:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Solution (Python):
a,b,c,d,e,f = input()

if c == d and e == f:
  print("Yes")
else:
  print("No")

Solution (Python):
input_a = input()

if input_a[2] == input_a[3] and input_a[4] == input_a[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input().strip('\n')
print('Yes' if S[2]==S[3] and S[4]==S[5] else 'No')

Solution (Python):
S = input()

m3 = S[2]
m4 = S[3]
m5 = S[4]
m6 = S[5]

if m3 == m4 and m5 == m6:
  print('Yes')
  
else:
  print('No')

Solution (Python):
S = input()

if S[2] == S[3] and S[4] == S[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
if S[2] == S[3] and S[4] == S[5]:
	print("Yes")
else:
	print("No")

Solution (Python):
s=input()
if s[2]==s[3] and s[4]==s[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
S = input()

if S[2]==S[3] and S[4]==S[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()

S = list(S)
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()
str_list = list(S)

if str_list[2] == str_list[3] and str_list[4] == str_list[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()

if S[2] == S[3] and S[4]  == S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
S=input()
if S[2]==S[3] and S[4]==S[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
str = input()

if str[2]==str[3] and str[4]==str[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()

if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
s=input()
print('Yes') if s[2]==s[3] and s[4]==s[5] else print('No')

Solution (Python):
S = input()
print('Yes' if (S[2] == S[3] and S[4] == S[5]) else 'No')

Solution (Python):
s=input()
if(s[2]==s[3] and s[4]==s[5]):
  print("Yes")
else:
  print("No")

Solution (Python):








if __debug__:
    debug = lambda *x: None
else:
    import logging
    logger = logging.getLogger()
    logger.setLevel(logging.DEBUG)
    ch = logging.StreamHandler()
    ch.setLevel(logging.DEBUG)
    formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
    ch.setFormatter(formatter)
    logger.addHandler(ch)
    debug = logger.debug

s = input()
debug(s[2])

print('Yes' if s[2] == s[3] and  s[4] == s[5] else 'No')

Solution (Python):
a,b,c,d,e,f,=input()
if c==d and e==f:
  print("Yes")
else:
  print("No")

Solution (Python):
[a,b,c,d,e,f] = input()

if c == d and e == f:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
if s[2] ==s[3] and s[4] == s[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
s=input()


if s[2]==s[3] and s[4]==s[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
S = [e for e in input()]


if S[2] == S[3] and S[4] == S[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
str=raw_input("")
if(str[2]==str[3] and str[4]==str[5]):
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()
if S[2]==S[3] and S[4]==S[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
S=input()
if(S[2]==S[3]) and (S[4]==S[5]):
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
if s[2]==s[3] and s[4]==s[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
text = input()
if len(text) < 6:
  print("No")
elif text[2] == text[3] and text[4] == text[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
if S[2] == S[3] and S[4] == S[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
s = input()

if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()

if S[2]==S[3] and S[4]==S[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
S=input()

if S[2]==S[3] and S[4]==S[5]:
    print('Yes')
else:
    print("No")

Solution (Python):
S=input()
if S[2]==S[3] and S[4]==S[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
S = input()

if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = list(input())

if S[2]==S[3]:
    if S[4]==S[5]:
        print('Yes')
    else:
        print('No')

else:
    print('No')

Solution (Python):
S = input()
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
s=input()

if s[2]==s[3] and s[4]==s[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
s = input()
 
if s[2] == s[3] and s[4] == s[5]:
     print('Yes')
else:
     print('No')

Solution (Python):
str = input()
 
if str[2] == str[3] and str[4] == str[5]:
     print('Yes')
else:
     print('No')

Solution (Python):
n = str(input())
flag_l =[False,False]
if n[2] == n[3]:
    flag_l[0] = True
if n[4] == n[5]:
    flag_l[1] = True
if all(flag_l):
    print("Yes")
else:
    print("No")

Solution (Python):
str = input()
 
if str[2] == str[3] and str[4] == str[5]:
     print('Yes')
else:
     print('No')

Solution (Python):
S=input()
if S[2]==S[3] and S[4]==S[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
s=input()
if(s[2]==s[3] and s[4]==s[5]):
  print("Yes")
else:
  print("No")

Solution (Python):
input1 = input()
coffee_list = list(input1)
if coffee_list[2]==coffee_list[3] and coffee_list[4]==coffee_list[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
s=list(input())
if len(s)==6 and s[2]==s[3] and s[4]==s[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
S =list(input())
if S[2] == S[3] and S[4] == S[5] :
    print("Yes")
else :
    print("No")

Solution (Python):
s = input()

if s[2]==s[3] and s[4]==s[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
S = input()

if S[2] == S[3] and S[4] == S[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input("")
s = s.lower()
if(s[2]==s[3] and s[4]==s[5]):
    print("Yes")
else:
    print("No")

Solution (Python):

S = input()
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = list(input())
if S[2] == S[3] and S[4] == S[5]:
  print('Yes')
else:
  print('No')

Solution (Python):

s = input()

if len(s) < 5:
    print('No')

if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
import sys
input = lambda: sys.stdin.readline().rstrip()
input_nums = lambda: list(map(int, input().split()))

def main():
    S = input()
    if S[2] == S[3] and S[4] == S[5]:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()

Solution (Python):
data = input()

if data[2] == data[3] and data[4]==data[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()
if S[2] == S[3] and S[4] == S[5]:
	print("Yes")
else:
	print("No")

Solution (Python):


s = input()
ret = 'No'
if s[2]==s[3] and s[4]==s[5]:
    ret = 'Yes'
print(ret)

Solution (Python):
S = input()

if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):

S = input()
if S[2]==S[3] and S[4]==S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):



S = input()
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
s= input()
if (s[2] == s[3] and s[4] == s[5]):
    print("Yes")
else:
    print("No")

Solution (Python):
import sys
input = lambda: sys.stdin.readline().rstrip()
input_nums = lambda: list(map(int, input().split()))

def main():
    S = input()
    if S[2] == S[3] and S[4] == S[5]:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()

Solution (Python):
import sys
input = sys.stdin.readline

def main():
    s = input().strip()
    if s[2] == s[3] and s[4] == s[5]:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()

Solution (Python):
S = input()

ans = lambda S: "Yes" if S[2] == S[3] and S[4] == S[5] else "No"
print(ans(S))

Solution (Python):
s = input()
print('Yes' if s[2]==s[3] and s[4]==s[5] else 'No')

Solution (Python):
S=input()
if S[2]==S[3] and S[4]==S[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
S = input()
l = []
for i in S:
  l.append(i)
if l[2] == l[3] and l[4] == l[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
a = list(input())
if a[2]==a[3] and a[4]==a[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
if s[2] == s[3] and s[5] == s[4]:
    print('Yes') 
else:
    print('No')

Solution (Python):
s = input()

if s[2] == s[3] and s[4] == s[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
S = input()
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
s = list(input())
if (s[2] == s[3] and s[4] == s[5]):
    print("Yes")
else:
    print("No")

Solution (Python):
check_text = input()
if check_text[2] == check_text[3] and check_text[4] == check_text[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()
if S[3]==S[2] and S[4]==S[5]:
    print ('Yes')
else:
    print ('No')

Solution (Python):
A=str(input())
if(A[2]==A[3] and A[4]==A[5]):
    print("Yes")
else:
    print("No")

Solution (Python):
string = list(input());
if (string[2] == string[3] and string[4] == string[5]):
	print("Yes");
else:
    print("No");

Solution (Python):
string = list(input());
if (string[2] == string[3]):
  if (string[4] == string[5]):
    print("Yes");
  else:
    print("No");
else:
  print("No");

Solution (Python):


def quick_sort(arr):
    left = []
    right = []
    if len(arr) <= 1:
        return arr

    
    
    ref = arr[0]
    ref_count = 0

    for ele in arr:
        if ele < ref:
            left.append(ele)
        elif ele > ref:
            right.append(ele)
        else:
            ref_count += 1
    left = quick_sort(left)
    right = quick_sort(right)
    return left + [ref] * ref_count + right


if __name__ == "__main__":
    s = input()
    if s[2]==s[3] and s[4]==s[5]:
        print('Yes')
    else:
        print('No')

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()
third = S[2]
fore = S[3]
five = S[4]
six = S[5]
if third==fore and five==six:
  print('Yes')
else:
  print('No')

Solution (Python):
s = input()
if(s[2:3]==s[3:4] and s[4:5]==s[5:6]):
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()
if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
S = list(input())
if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()
if S[2] == S[3]:
  if S[4] == S[5]:
    print("Yes")
   
  else:
    print("No")
else:
  print("No")

Solution (Python):
S=input()
print('Yes' if S[2]==S[3] and S[4]==S[5] else 'No')

Solution (Python):
S = input()
if(S[2]==S[3] and S[4]==S[5]):
    print("Yes")
else:
    print("No")

Solution (Python):
a = input()
b = []
for z in a:
  b.append(z)
if b[2]==b[3]:
  if b[4]==b[5]:
    print("Yes")
  else:
    print("No")
else:
  print("No")

Solution (Python):
ss = input()
if ss[2]==ss[3] and ss[4] == ss[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
s = input()
ans = 'Yes' if s[2] == s[3] and s[4] == s[5] else 'No'
print(ans)

Solution (Python):
s = input()
if s[2]==s[3] and s[4]==s[5]:
  print("Yes")
else :
  print("No")

Solution (Python):
S = input()

if (S[2] == S[3]) and (S[4] == S[5]):
    print("Yes")
    
else:
    print("No")

Solution (Python):
S=input()
if S[2]==S[3] and S[4]==S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()

answer = "No"
if S[2] == S[3] and S[4] == S[5]:
  answer = "Yes"

print(answer)

Solution (Python):
if __name__=='__main__':
    S = input()
    if S[2]==S[3] and S[4]==S[5]:\
      print('Yes')
    else:
      print('No')

Solution (Python):
s = input()
print('Yes' if s[2] == s[3] and s[4] == s[5] else 'No')

Solution (Python):
s=input()
if s[2]==s[3] and s[4]==s[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()

if S[2]==S[3] and S[4]==S[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
word = input()

if word[2] == word[3] and word[4] == word[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()

if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
s = str(input())

if s[2] == s[3] and s[4] == s[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
s=input()
f=-1
if s[2]==s[3]:
    if s[4]==s[5]:
        f=1
if f==1:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
if S[2] == S[3] and S[4] == S[5] and len(S) == 6:
  print("Yes")
else:
  print("No")

Solution (Python):
S = list(input())
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = list(input())
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
def judge(ex_str):
    if (ex_str[2] == ex_str[3]) and (ex_str[4] == ex_str[5]):
        print("Yes")
    else:
        print("No")

str_1 = input()
judge(str_1)

Solution (Python):
def coffee(word):
    ar = [char for char in word] 
    if (ar[2] == ar[3]) and (ar[4] == ar[5]):
      return 'Yes'
    else:
      return 'No'

if __name__ == '__main__':

    ar = str(input())

    result = coffee(ar)
    print(result)

Solution (Python):
x=str(input())
if x[2]==x[3] and x[4]==x[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
txt = input()
if( txt[2] == txt[3] and txt[4] == txt[5]):
  print('Yes')
else:
  print('No')

Solution (Python):
S = str(input())


if (S[2] == S[3]) and (S[4] == S[5]):
  print('Yes')

else:
  print('No')

Solution (Python):
a=input()
if a[2]==a[3] and a[4]==a[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
s=input()
if s[2]==s[3] and s[4]==s[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
l=list(x for x in input())
if(l[2]==l[3] and l[4]==l[5]):
  print("Yes")
else:
  print("No")

Solution (Python):
S=input()
if S[2]==S[3] and S[4]==S[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
s = input()

if s[2]==s[3] and s[4]==s[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
S = input()

if S[2]==S[3] and S[4]==S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
string = []

string = input('')

if string[2] == string[3] and string[4] == string[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
print('Yes' if s[2]==s[3] and s[5]==s[4] else 'No')

Solution (Python):
S = input()
if S[2] == S[3] and S[4] == S[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
S=input()
print('Yes' if S[2]==S[3] and S[4]==S[5] else 'No')

Solution (Python):
s = input()

if s[2] == s[3] and s[4] == s[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input() 
if S[2] == S[3] and S[4]==S[5]:
    answer = "Yes"

else:
    answer = "No"

print(answer)

Solution (Python):
s = list(input())
ans = True
if not s[2] == s[3]:
    ans = False
if not s[4] == s[5]:
    ans = False
if ans:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
n=input()
if n[2]==n[3] and n[5]==n[4]:
  print("Yes")
else:
  print("No")

Solution (Python):



def main():
    s = input()

    if s[2] == s[3] and s[4] == s[5]:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()

Solution (Python):
S = list(input())

if S[2] == S[3] and S[4] == S[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
S = input().lower()
if S[2]==S[3] and S[4]==S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()
if S[2] == S[3] and S[4] == S[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
str = input()
if len(str)==6:

    if str[2]==str[3]:
        if str[4]==str[5]:
            print("Yes")
        else:
            print("No")

    else :
        print("No")
else:
    print("S is no 6")

Solution (Python):

S = str(input())
a= 'Yes'
b='No'
if S[3] is S[2] and S[4] is S[5]:
    print(a)
else:
    print(b)

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
S=input()
if S[2] == S[3] and S[4] == S[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()

if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()

if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()

if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
s = str(input())

if s[2]==s[3] and s[4]==s[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
S=input()

if(S[2]==S[3])&(S[4]==S[5]):
   print("Yes")
else:
   print("No")

Solution (Python):
S = input()

if (S[2]==S[3]) & (S[4]==S[5]):
    print("Yes")
else:
    print("No")

Solution (Python):
import sys

s = list(input())
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
 
if(S[2] == S[3] and S[4] == S[5]):
    print('Yes')
else:
    print('No')

Solution (Python):
input_s = input()
if input_s[2]==input_s[3] and input_s[4]==input_s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
if s[2]==s[3] and s[4]==s[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
S = input()
ls = list(S)
if S[2] == S[3] and S[4] == S[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
s=input();print("YNeos"[s[2::3]!=s[3:5]::2])

Solution (Python):
s=input();print("YNeos"[s[2::2]!=s[3::2]::2])

Solution (Python):
val = input()
if val[2] == val[3] and val[4] == val[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
def main(s):
  if s[2] == s[3] and s[4]==s[5]:
    print("Yes")
  else:
    print("No")
    
main(input())

Solution (Python):
s = str(input())
if s[2]==s[3]:
  if s[4]==s[5]:
    print("Yes")
    exit()
print("No")

Solution (Python):
s = input()
print('Yes' if s[2]==s[3] and s[4]==s[5] else 'No')

Solution (Python):
s = str(input())
if s[2] == s[3] and s[4] == s[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = list(map(str, input()))

if S[2] == S[3]:
  if S[4] == S[5]:
    ans = 'Yes'
  else:
    ans = 'No'
else:
  ans = 'No'
print(ans)

Solution (Python):
S = input()
if S[2]==S[3] and S[4]==S[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()
import sys

if S[2]==S[3]:
  if S[4]==S[5]:
    print('Yes')
    sys.exit()
print('No')

Solution (Python):
s=input()
if s[2]==s[3] and s[4] == s[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
s = input()
 
if s[2] == s[3]:
  if s[4] == s[5]:
    print("Yes")
  else:
    print("No")
else:
  print("No")

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):

a=input()
if a[2]==a[3] and a[4] == a[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()

if S[2] == S[3] and S[4] == S[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()

if S[2]==S[3] and S[4]==S[5] and len(S)==6 :
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
if s[2] == s[3] and s[4]== s[5]:
    print("Yes")
else :
    print("No")

Solution (Python):
s = input()
s=str(s)
b=list(s)
if b[2]==b[3] and b[4]==b[5]:
      print('Yes')
else:
      print('No')

Solution (Python):
w = input()
if w[2]==w[3] and w[4]==w[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
li=list(input())
if li[2]==li[3] and li[4]==li[5]:
    print("Yes")
else:print("No")

Solution (Python):
S = input()

if S[2]==S[3] and  S[4]== S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = str(input())
print('Yes' if S[2]==S[3] and S[4] == S[5] else 'No')

Solution (Python):
s = input()
if s[2] == s[3] and s[4] == s[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
S = list(input())
if S[2] == S[3] and S[4] == S[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else: print("No")

Solution (Python):
S = input()
list = []
for i in range(6):
  list.append(S[i])
if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("No")

Solution (Python):
s = list(input())

if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')

Solution (Python):
S=input()
if S[2] is S[3] and S[4] is S[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
ip = input()
if ip[2]==ip[3] and ip[4]==ip[5]:
    print('Yes')
else:
    print('No')