peterverebics/CodeNet_Python_118 huggingface dataset:
my=input()
if my[2]==my[3] and my[4]==my[5]:
    print('Yes')
else:
    print('No')
S = input()
if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("No")
S = input()
a = 'No'
if S[2] == S[3] and S[4] == S[5]:
  a = 'Yes'
print(a)
##A
s = input()
if s[2] == s[3] and s[4] == s[5]:
    print("Yes")
else:
    print("No")
S = input()
print("Yes" if S[2]==S[3] and S[4]==S[5] else "No")
S = input()
if S[2]==S[3] and S[4]==S[5]:
  print('Yes')
else:
  print('No')
S = input()
ret = 'No'
if S[2] == S[3]:
    if S[4] == S[5]:
        ret = 'Yes'
print(ret)
a = input()
if a[3] == a[2] and a[4] == a[5]:
    print('Yes')
else:
    print('No')
S = input()
S = list(S)

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

if(li[2] == li[3] and li[4] == li[5]):
  print("Yes")
else:
  print("No")
s=input()
if s[2]==s[3] and s[4]==s[5]:
    print("Yes")
    exit()
print("No")
S = input()
if S[2]==S[3] and S[4]==S[5]:
    print("Yes")
else:
    print("No")
from sys import exit, setrecursionlimit
setrecursionlimit(10**6)

def array2D(row, col ,val=0):
    return [[val]*col for i in range(row)]

s = input()
print('Yes' if s[2]==s[3] and s[4] == s[5] else 'No')
A = list(input())
if A[2] == A[3] and A[4] == A[5]:
	print("Yes")
else:
  	print("No")
# -*- coding: utf-8 -*-
import sys


S=input()

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

if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("No")
S = input()
if S[2] == S[3] and S[4] == S[5]:
  print('Yes')
else:
  print('No')
#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str


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


def main():
    s = sys.stdin.readline().strip()  # type: str
    solve(s)


if __name__ == '__main__':
    main()
s = input()
if s[2]==s[3] and s[4]==s[5]: print("Yes")
else: print("No")
import sys
sys.setrecursionlimit(10 ** 6)
input = sys.stdin.readline
s = input().strip()

if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')
# -*- coding: utf-8 -*-

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

if __name__ == '__main__':
    print(solve())
a=list(input())
if a[2]==a[3] and a[4]==a[5]:
  print('Yes')
else:
  print('No')
s = input()
if s[2:3] == s[3:4] and s[4:5] == s[5:6]:
    print("Yes")
else:
    print("No")
a,b,c,d,e,f = input()

if c == d and e == f :
    print("Yes")
else:
    print("No")
S =input().strip()

def check(i, j):
    if S[i] == S[j]:
        return True
    return False

if check(2,3) and check(4,5):
    print("Yes")
else:
    print("No")
s = input()
ret = "No"
if s[2] == s[3] and s[4]==s[5]:
    ret = "Yes"
print("{}".format(ret))
coffee = "coffee"
input_str = input()

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

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

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

if s[2] == s[3] and s[4] == s[5]:
    print("Yes")
else :
    print("No")
a = input()
if a[2] == a[3] and a[4] == a[5]: print("Yes")
else: print("No")
s = input()
if (s[2]==s[3])&(s[4]==s[5]):
    print('Yes')
else:
    print('No')
n = input()
if n[2] == n[3] and n[4] == n[5]:
  print('Yes')
else:
  print('No')
def main():
    s = input()
    if s[2] == s[3] and s[4] == s[5]:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()
s=input();
if s[2]==s[3] and s[4]==s[5]:
	print("Yes")
else : print("No")
s=input()
if s[2] == s[3] and s[4] == s[5]:
    print("Yes")
else:
    print("No")
#create date: 2020-03-28 21:00

import sys
stdin = sys.stdin

def ns(): return stdin.readline().rstrip()
def ni(): return int(ns())
def na(): return list(map(int, stdin.readline().split()))

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

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

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

    return 0

if __name__ == "__main__":
    solve()
a=input()
if a[2] == a[3] and a[4] == a[5]:
    print("Yes")
else:
    print("No")
S = list(input())
if S[2]==S[3] and S[4]==S[5]:
    print('Yes')
else:
    print('No')
a = str(input().split())
b = list(a)
if b[4] == b[5] and b[7] == b[6]:
     print("Yes")
else :
     print("No")
s = list(input())

if (s[2] == s[3]) and (s[4] == s[5]) :
  print("Yes")
else :
  print("No")
S = input()
if((S[2] == S[3])and(S[4] == S[5])):
  print('Yes')
else:
  print('No')
s = input()
print("Yes" if s[2]==s[3] and s[4]==s[5] else "No")
s=input()
print("Yes") if s[2]==s[3] and s[4]==s[5] else print("No")
#!pypy3
import sys
from collections import *
import heapq
import math
import bisect
from itertools import permutations,accumulate,combinations,product
from fractions import gcd
def input():
    return sys.stdin.readline()[:-1]
def ruiseki(lst):
    return [0]+list(accumulate(lst))
mod=pow(10,9)+7
al=[chr(ord('a') + i) for i in range(26)]

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

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

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


if __name__ == "__main__":
    main()
S=input()
s=list(S)
if s[2]==s[3]:
    if s[4]==s[5]:
        print('Yes')
    else:
        print('No')
else:
    print('No')
s = input()
# a,b = map(int, input().split())
# l = list(map(int, input().split()))

if s[2] == s[3] and s[4]==s[5]:
    print("Yes")
else:
    print("No")
s = list(input())
ans = 'Yes' if s[2] == s[3] and s[4] == s[5] else 'No'
print(ans)
s = input()
flag = True
if s[2] != s[3]:
    flag = False
elif s[4] != s[5]:
    flag = False
if flag == True:
    print("Yes")
else:
    print("No")
I = input().split()
S = I[0]

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

if '__main__' == __name__:
    resolve()
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()
S = list(input())

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

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

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

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

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


inp = stdin.readline

t = inp().strip()

if t[2] == t[3] and t[4] == t[5]:
    print("Yes")
else:
    print("No")
#n = int(input())
#a,b = map(int,input().split())
#a_L = list(map(int,input().split()))
s = list(input())

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


b=False
if a[2]==a[3]:
    if a[4]==a[5]:
        b=True


if b==True:
    print("Yes")
else:
    print("No")
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def main():
    S = input()

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


if __name__ == '__main__':
    main()
a = input()

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


def main():
    s = input()
    res = solve(s)
    print(res)


def test():
    assert solve("sippuu") == "Yes"
    assert solve("iphone") == "No"
    assert solve("coffee") == "Yes"


if __name__ == "__main__":
    test()
    main()
#coding:utf-8

            
def main():
    s = input()

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

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

print(answer)
import sys
input = sys.stdin.readline


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


if __name__ == '__main__':
    main()
import math
from collections import deque
def main():
    s = list(input())
    if s[2]==s[3] and s[4]==s[5]:
        print("Yes")
    else:
        print("No")
        


if __name__ == "__main__":
    main()
S = input()
if S[2]==S[3] and S[4]==S[5]: print('Yes')
else: print('No')
s = raw_input()#,k = map(int, raw_input().split(' '))
print 'Yes ' if len(s) >= 6 and s[2] == s[3] and s[4] == s[5] else 'No' #f(n,k)
s=input()
 
if(s[2]==s[3] and s[4]==s[5]):
  print("Yes")
else:
  print("No")
s = input()

if s[2] == s[3] and s[4] == s[5]:
	print("Yes")
else:
	print("No")
def main():
    word = list(str(input()))
    if word[2] == word[3] and word[4] == word[5]:
        print('Yes')
    else:
        print('No')
main()
S = input()
print("Yes") if S[2] == S[3] and S[4] == S[5] else print("No")
s = input()
flag = 0
if s[2] == s[3]:
    if s[4] == s[5]:
        flag = 1
if flag == 1:
    print("Yes")
else:
    print("No")
s = input().strip()
if s[2] == s[3] and s[4] == s[5]:
    print("Yes")
else:
    print("No")
S = input()

if S[2] == S[3] and S[4] == S[5]:
  print('Yes')
else:
  print('No')
str=input(" ")
#for i in range(len(str)):
 #   print(str[i])
    # TODO: write code...
if((str[2]==str[3]) and (str[4]==str[5])):
    print("Yes")
else:
    print("No")
s = input()
if s[2] == s[3] and s[4]==s[5]:
  print("Yes")
else:
  print("No")
s = input()
if(s[2]==s[3] and s[4]==s[5]):
    print("Yes")
else:print("No")
s = list(input())

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

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

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

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

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

else:
    print("No")
S = str(input())

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

Ans = "No"
if S[2]==S[3] and S[4]==S[5]:
  Ans = "Yes"
print (Ans)
S = input()
if S[2] != S[3] or S[4] != S[5]:
  print("No")
else:
  print("Yes")
def main():
    s = input()
    if (s[2] == s[3]) and (s[4]==s[5]):
        print("Yes")
    else:print("No")
if __name__ == "__main__":
    main()
str = input()

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

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

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

if S[2]==S[3] and S[4]==S[5]:
    print('Yes')
else:
    print('No')
s=input()
if(s[2]==s[3] and s[4]==s[5]):
    print('Yes')
else:
    print('No')
s = input()
if (s[2] == s[3]) and (s[4] == s[5]):
	print("Yes")
else:
  print("No")
S=str(input(''))
if (S[2] == S[3] and S[4] == S[5]):
  print("Yes")
else:
  print("No")
a = input()
if a[2]==a[3] and a[4]==a[5]:
    print("Yes")
else:
    print("No")
from sys import exit, stdin
S = stdin.readline().rstrip()
if S[2] == S[3] and S[4] == S[5]:
  print('Yes')
else:
  print('No')
a,b,c,d,e,f=input()
if c==d and e==f:
    print("Yes")
else:
    print("No")
S = list(input())
ans = "No"
if (S[2] == S[3]) and (S[4] == S[5]):
    ans = "Yes"
print(ans)
letters = input()
if letters[2] == letters[3] and letters[4] == letters[5] :
    print('Yes')

else :
    print('No')
S = str(input())

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

print('Yes'if S[2]==S[3] and S[4] == S[5] else 'No')
a = str(input())
if len(a) >= 5:
    if a[2] == a[3] and a[4] == a[5]:
        print("Yes")
    else:
        print("No")
else:
    print('len should be more than 5')
S=input();print("Yes" if (S[2]==S[3] and S[4]==S[5]) else "No")
S=input()
if S[3]==S[2] and S[4]==S[5]:
    print('Yes')
else:
    print('No')
#!usr/bin/env python3
import sys
import math
import string
import collections
import fractions
import random
from operator import itemgetter
import itertools
from collections import deque
import copy
import heapq
import bisect

MOD = 10 ** 9 + 7
INF = 10 ** 18
input = lambda: sys.stdin.readline().strip()

sys.setrecursionlimit(10 ** 8)

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

if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("No")
def solve():
  val = str(input())
  if val[2] == val[3] and val[4] == val[5]:
    print('Yes')
  else:
    print('No')
solve();
S=input()
if S[2]==S[3] and S[4]==S[5]:
  print("Yes")
else:
  print("No")
get_char = list(input())

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

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

main()
s = input();

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

if s[2]==s[3] and s[4]==s[5]:
  print('Yes')
else:
  print('No')
S=list(input())
if S[2]==S[3] and S[4]==S[5]:
    print('Yes')
else:
    print('No')
# A = [list(map(int, input().split())) for _ in range(3)]
# H = int(input())
# B = [int(input()) for _ in range(n)]
# A = list(map(int, input().split()))
# a, b = map(int, input().split())
S = input()
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")
S = list(input())
if S[2] == S[3] and S[4] == S[5]:
    print('Yes')
else:
  print('No')
S = input()
if (S[2]==S[3])and(S[4]==S[5]):
  print('Yes')
else:
  print('No')
S = map(str, input())

a = next(S)
b = next(S)
c = next(S)
d = next(S)
e = next(S)
f = next(S)

if c == d and e == f:
    print('Yes')
else:
    print('No')
w = input()
if (w[2] == w[3]) and (w[4] == w[5]):
    print("Yes")
else:
    print("No")
S = input()
ans = "No"
if S[2] == S[3]:
  if S[4] == S[5]:
    ans = "Yes"
print(ans)
#ライブラリインポート
from collections import defaultdict

con = 10 ** 9 + 7
#入力受け取り
def getlist():
	return 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()
import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

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

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

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

S = sr()
bl = True
if S[2] != S[3] or S[4] != S[5]:
    bl = False

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

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

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

if (s[2] == s[3]) and (s[4] == s[5]):
    print("Yes")
else:
    print("No")
S = input()
 
if S[2]==S[3] and S[4]==S[5]:
    print("Yes")
else:
    print("No")
S = list(input())
ans = "Yes"
if S[2]!=S[3]:
    ans = "No"
if S[4]!=S[5]:
    ans = "No"
print(ans)
S=input()
if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("No")
s = input()
if s[2] == s[3] and s[4] == s[5]: print("Yes")
else: print("No")
s = str(input())
if s[2] == s[3] and s[4] == s[5]:
    print("Yes")
else:
    print("No")
# -*- coding: utf-8 -*-
"""
Created on Sun Jan 19 20:52:57 2020

@author: over-
"""

S=input()

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

print(ans)
s = input()

if len(s) == 6 and s[2]==s[3] and s[4]== s[5]:
    print("Yes")
else:
    print("No")
S = input()
if (S[2] == S[3])&(S[4] == S[5]):
    print("Yes")
else :
    print('No')
str=input()
if str[2]==str[3] and str[4]==str[5]:
 print("Yes")
else:
 print("No")
s = input()
if len(s) >= 6 and s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')
N = input()
if(N[2] == N[3] and N[4] == N[5]):
    print("Yes")
else:
    print("No")
a = input()
iff3 = a[2]
iff4 = a[3]
iff5 = a[4]
iff6 = a[5]
if iff3 == iff4 :
    if iff5 == iff6 :
        print("Yes")
    else :
        print("No")
else :
    print("No")
a = input()
if (a[2]==a[3]) & (a[4] == a[5]):
    print('Yes')
else:
	print('No')
S = list(input())

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

def coffee_judge(S):
    likecoffee=False
    if S[2]==S[3] and S[4]==S[5]:
        likecoffee=True
    
    if likecoffee==True:
        ans="Yes"
    else:
        ans="No"
    return ans

print(coffee_judge(S))
data = input()

if data[2] == data[3] and data[4]==data[5]:
  print("Yes")
else:
  print("No")
s=input()
s=list(s)
if s[2]==s[3] and s[4]==s[5]:
    print('Yes')
else:
    print('No')
s=input()
print('YNeos'[(s[2]!=s[3])|(s[4]!=s[5])::2])
S = input()
print('Yes') if S[2] == S[3] and S[4] == S[5] else print('No')
S=input()

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

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

data=input()

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


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

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

if s[2] == s[3]:
    if s[4] == s[5]:
        print('Yes')
        exit()
print('No')
s = str(input())
sList = list(s)
if s[2] == s[3] and s[4] == s[5]:
	print("Yes")
else:
	print("No")
S = str(input())
if S[2] == S[3] and S[4] == S[5]:
    print('Yes')
else:
    print('No')
s = input()
print ("Yes") if (s[2]==s[3] and s[4]==s[5]) else print ("No")
s = raw_input()
print 'Yes' if s[2]==s[3] and s[4]==s[5] else 'No'
s=str(input())
ans=0
if s[2]!=s[3]:
  ans+=1
if s[4]!=s[5]:
  ans+=1
if ans==0:
  print("Yes")
else:
  print("No")
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()
N = input()
array = list(N)
if array[2] == array[3] and array[4] == array[5]:
  print('Yes')
else:
  print('No')
def solve():
    S = input()
    if S[2] == S[3] and S[4] == S[5]:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    solve()
s = input()

c = 'coffee'
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')
s = input()
if s[2] == s[3]:
    if s[4] == s[5]:
        print("Yes")
    else:
        print("No")
else:
    print("No")
s = input()
s1 = list(s)
if s1[2] == s1[3] and s1[4] == s1[5]:
    print("Yes")
else:
    print("No")
import sys
input = sys.stdin.readline

S = input().rstrip("\r\n")
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")
s=input()
print(['No','Yes'][s[2]==s[3] and s[4]==s[5]])
S = input()

yes = (S[2] == S[3] and S[4] == S[5])

print('Yes' if yes else 'No')
S = input()

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

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

Flag = True

if S[2] != S[3] or S[4] != S[5]:
    Flag = False

if Flag:
    print('Yes')
else:
    print('No')
moji=list(input())
if moji[2]== moji[3] and moji[4]== moji[5] :
    print("Yes")
    exit()
print("No")
n = input()
if n[2] == n[3] and n[4] == n[5]: print("Yes")
else: print("No")
s = input()
if s[2]==s[3] and s[4]==s[5]:
  print("Yes")
else:
  print("No")
import sys
readline = sys.stdin.readline

S = readline()

if S[2] == S[3] and S[4] == S[5]:
    print('Yes')
else:
    print('No')
S = list(input())
if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("No")
#!/usr/bin/python
# -*- coding: utf-8 -*-

# 入力はstringで入る．
# intにしたければ int(input())
# floatで受け取ると 1.0 になる．

# 入力 : S
S = input()

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

ans = 'Yes' if S[2] == S[3] and S[4] == S[5] else 'No'
print(ans)
s = input("")
s = s.lower()
if(s[2]==s[3] and s[4]==s[5]):
    print("Yes")
else:
    print("No")
s = input()
if(s[2]==s[3] and s[4]==s[5]):
    print("Yes\n")
else:
    print("No\n")
s = input()
if s[-1] == s[-2]:
  if s[-3] == s[-4]:
    print("Yes")
    exit()

print("No")
import sys
s = sys.stdin.read()
print('Yes' if s[2] == s[3] and s[4] == s[5] else 'No')
S=input()
if S[2] == S[3] and S[4] == S[5]:
    print('Yes')

else:
    print('No')