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):
import sys
from collections import deque
import numpy as np
import math
sys.setrecursionlimit(10**6)
def S(): return sys.stdin.readline().rstrip()
def SL(): return map(str,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def IL(): return map(int,sys.stdin.readline().rstrip().split())

def Main():
    s = S()
    if len(s)<6:
        print('No')
        exit()
    if s[2]==s[3] and s[4]==s[5]:
        print('Yes')
    else:
        print('No')
    return

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')
else:
    print('No')

Solution (Python):
s=input()
if s!=' ':
    print("Yes") if s[3]==s[2] and s[4]==s[5] 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()
print("YNeos"[not (s[2]==s[3] and s[4]==s[5])::2])

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):

x = input()
if (x[2]==x[3])and(x[4]==x[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):
a=input()
if a[2] == a[3] and a[4] == a[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()
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):
str_in = input()
ans = "No"
if(str_in[2] == str_in[3] and str_in[4] == str_in[5]):
  ans = "Yes"
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()

a=s[2]
b=s[3]
c=s[4]
d=s[5]

if a==b and c==d:
  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()

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


if __name__ == "__main__":
    main()

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

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

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

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

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):
N = input()

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

Solution (Python):
S=input()
list(S)
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()
if (S[2] == S[3]) & (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()
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):


S = input()

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

Solution (Python):
def resolve():
    S = str(input())
    if S[3 - 1] == S[4 - 1] and S[5 - 1] == S[6 - 1]:
        print('Yes')
        return
    print('No')
    return

resolve()

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 = list(input())

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

else:
  print("No")

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

if str[2] == str[3]:
    if str[4] == str[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):
def solve():
    S = input()
    print('NYoe s'[S[2] == S[3] and S[4] == S[5]::2])


if __name__ == '__main__':
    solve()

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

Solution (Python):
s=str(input())
s=list(s)
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):
from math import floor
from decimal import Decimal

S = input()

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

Solution (Python):
t = input()
if t[2]==t[3]:   
    if t[4]==t[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=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 = list(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):
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')
    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):
n = input()
if n[2] == n[3] and n[4] == n[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
S = input()

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

Solution (Python):
S = input()

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

Solution (Python):
co ="coffee"
S = input()

if S[2]!=S[3]:
    print("No")
    
elif 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):
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]:
  ans="Yes"
else:
  ans="No"
print(ans)

Solution (Python):
import sys 

inp=sys.stdin.readline()


def coffeeLike(inp):
	
	li=list(inp)
	if(len(li)>=6):
		if (li[2]==li[3]) and (li[4]==li[5]):
			print("Yes")
		else:
			print("No")
	else:
		print("No")
		
	
coffeeLike(inp)

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

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

Solution (Python):
s=input();print('YNeos'[not(s[2]==s[3] and s[4]==s[5])::2])

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

a = resolve()

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] :
  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):
import sys

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

Solution (Python):
S=list(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):
import sys

input = lambda: sys.stdin.readline().rstrip()


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


if __name__ == '__main__':
    solve()

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()


a = s[2]


b = s[3]


if a != b:
    print('No')
    exit()
    

c = s[4]


d = s[5]


if c != d:
    print('No')
    exit()


print("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 s[-1] == s[-2]:
  if s[-3] == s[-4]:
    print("Yes")
    exit()

print("No")

Solution (Python):
s = input()

s1, s2, s3, s4, s5, s6 = s

if s3 == s4 and s5 == s6:
	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();print('YNeos'[s[2]!=s[3] or s[4]!=s[5]::2])

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

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





def RD(): return sys.stdin.read()
def II(): return int(input())
def MI(): return map(int,input().split())
def MF(): return map(float,input().split())
def LI(): return list(map(int,input().split()))
def LF(): return list(map(float,input().split()))
def TI(): return tuple(map(int,input().split()))





def main():
	s=input().decode()

	ans="Yes"

	if s[2]!=s[3] or s[4]!=s[5]:
		ans="No"

	print(ans)




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 = 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):
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):
S=input()
ans='No'
if S[2]==S[3] and S[4]==S[5]:
  ans='Yes'
print(ans)

Solution (Python):
S=input()

flg=False
if S[2]==S[3]:
    if S[4]==S[5]:
        flg=True

if flg:
    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 = list(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 = list(input())
if S[2]==S[3] and S[4]==S[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")

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")
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]:
	if s[4] == s[5]: print("Yes")
	else: print("No")
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):
S = input()
print("{}".format("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):
s = input()

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

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





def RD(): return sys.stdin.read()
def II(): return int(input())
def MI(): return map(int,input().split())
def MF(): return map(float,input().split())
def LI(): return list(map(int,input().split()))
def LF(): return list(map(float,input().split()))
def TI(): return tuple(map(int,input().split()))





from itertools import combinations

def main():
	s=input().decode()
	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')
else:
    print('No')

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

Solution (Python):
ans = "Yes"
s = input()

s = s[2:]

for i in range(2):
    j = 2 * i
    if s[j] != s[j + 1]:
        ans = "No"

print(ans)

Solution (Python):
S = str(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):
n=list(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):
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[3]==s[2] and s[4]==s[5]:
    print("Yes")
else:
    print("No")

Solution (Python):
a=input()

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

Solution (Python):
a = input()
print("Yes" if a[2] == a[3] and a[4] == a[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 = str(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[4] == n[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()
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=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()

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

Solution (Python):
s = list(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):
def resolve():
    s = input()

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

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

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

Solution (Python):
s = input()

n = []
for i in s:
  n.append(i)

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

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

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

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] 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):
inp=str(input())

if inp[2]==inp[3] and inp[4]==inp[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[-4]==s[-3] and s[-2]==s[-1]:
    print('Yes')
else:
    print('No')

Solution (Python):
import sys
import os
import bisect, collections, copy, itertools, math, string
def I(): return int(input())
def S(): return input()
def LI(): return list(map(int, input().split()))
def LS(): return list(input().split())

def solve():
	s = S()
	if s[2]==s[3] and s[4]==s[5]:
		print('Yes')
		return
	print('No')
	return
	
if __name__ == '__main__':
	solve()

Solution (Python):
coffee = input()

if coffee[2] == coffee[3] and coffee[4] == coffee[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]:
  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):
a = str(input())
if (a[2] == a[3] and a[4] == a[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[3] == s[2] 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 = 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 =str(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):
x = input()

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

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

Solution (Python):
s = input()
ans = "No"
if(s[2:3]==s[3:4] and s[4:5]==s[5:6]):
    ans = "Yes"
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):
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()
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):
N = input()
ans = "Yes" if (N[2] == N[3]) and (N[4] == N[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 = list(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):
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())
j="No"
if s[2]==s[3] and s[4]==s[5]:
    j="Yes"
print(j)

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):
import numpy as np
import scipy.sparse as sps
import scipy.misc as spm
import collections as col
import functools as func
import itertools as ite
import fractions as frac
import math as ma
import cmath as cma
import copy as cp
import sys
def sinput(): return sys.stdin.readline()
def iinput(): return int(sinput())
def imap(): return map(int, sinput().split())
def fmap(): return map(float, sinput().split())
def iarr(n=0):
    if n: return [0 for _ in range(n)]
    else: return list(imap())
def farr(): return list(fmap())
def sarr(n=0):
    if n: return ["" for _ in range(n)]
    else: return sinput().split()
def barr(n): return [False for _ in range(n)]
sys.setrecursionlimit(10**7)
MOD = 10**9 + 7; EPS = sys.float_info.epsilon
PI = np.pi; EXP = np.e; INF = np.inf

s = sinput()
flag = s[2]==s[3] and s[4]==s[5]
if flag: 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):
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):

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

Solution (Python):
word = input()
if (word[2] == word[3]) and (word[4] == word[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[4]==S[5])&(S[2]==S[3]):
    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()
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()

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

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

Solution (Python):
x=str(input())
if(x[2]==x[3]and x[4]==x[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):
n=list(input())

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

main()