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

Solution (Python):
word = input()
print("Yes" if(word[2] == word[3] and word[4] == word[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,b,c,d,e,f=input()
if c==d and e==f:
    print("Yes")
else:
    print("No")

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7
 
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]):
    ans = 'Yes'
else:
    ans = 'No'

print(ans)

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

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

Solution (Python):
s = input()
a = list(s)
if a[2] == a[3] and a[4] == a[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):
from sys import stdin

def main():

    a = stdin.readline().rstrip()
    
    if a[2] == a[3] and a[4] == a[5]:
        print("Yes")
    else:
        print("No")



if __name__ == "__main__":
    main()

Solution (Python):
from sys import stdin

def main():

    a = stdin.readline().rstrip()
    
    if a[2] == a[3] and a[4] == a[5]:
        print("Yes")
    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):
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 = 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):
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):
s = input()

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

print(result)

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

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

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

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)

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

Solution (Python):
import sys

N = input()

if N[2]==N[3]:
    if N[4]==N[5]:
        print("Yes")
        sys.exit()

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

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

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

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

if list[2] == list[3] and list[4] == list[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):
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):
S = raw_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 = 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]:
  ans = 'Yes'
else:
  ans = 'No'

print(ans)

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]:
  ans = 'Yes'
else:
  ans = 'No'

print(ans)

Solution (Python):
s = input()

if s[2] == s[3] and s[4] == s[5]:
  ans = 'Yes'
else:
  ans = 'No'

print(ans)

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

Solution (Python):
coffee_sentence = list(map(str, input()))
if(coffee_sentence[2]==coffee_sentence[3] and coffee_sentence[4]==coffee_sentence[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 like_coffee(s):
	if s[2] == s[3] and s[4] == s[5]:
		return True
	else:
		return False


if like_coffee(input()):
	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):


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):
def coffee(s):
  if len(s) < 6:
    return False
  if s[2] == s[3] and s[4] == s[5]:
    return 'Yes'
  else:
    return 'No'

string = input()
print(coffee(string))

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

Solution (Python):
S = input()
count = 0
a1 = 1
for i in S:
  if count == 2 or count == 4:
    mem = i
  if count == 3 or count == 5:
    if mem == i:
      a1 *= 1
    else:
      a1 *= 0
      
  count += 1
  
  
if a1==1:
  print('Yes')
else:
  print('No')

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

Solution (Python):
s=input()
a=[]
for j in s:
    a.append(j)
if a[2]==a[3] and a[4]==a[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):
coffee = input()
print("Yes") if coffee[2] == coffee[3] and coffee[4] == coffee[5] 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):
txt = input()

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

if chrs[2]==chrs[3] and chrs[4]==chrs[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()

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] 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):
li=list(input())
a=li[2]
b=li[3]
c=li[4]
d=li[5]
if a==b:
    if c==d:
        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()

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):
import sys
stdin = sys.stdin

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

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

A = list(S)



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

Solution (Python):
S = [ c for c in 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()
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 = 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=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):


int1 = lambda x: int(x) - 1
def II(): return int(input())

def MI(): return map(int, input().split())
def MI1(): return map(int1, input().split())

def LI(): return list(map(int, input().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]


def solve():
    s = input()
    print('Yes' if s[2]==s[3] and s[4]==s[5] else '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):
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):
a=str(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()
a = list(s)
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])&(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=input()
print("Yes" if string[2]==string[3] and string[4]==string[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):
from sys import stdin
import math
import fractions

s = stdin.readline().rstrip()

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):
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[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):
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):
stR = input()
rsp = ('No', 'Yes')[len(stR) == 6 and stR[2] == stR[3] and stR[5] == stR[4]]
print(rsp)

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')
    exit(0)
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):
s = input()

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

Solution (Python):
from functools import reduce
from fractions import gcd
import math
import bisect
import itertools
import sys
sys.setrecursionlimit(10**7)
input = sys.stdin.readline
INF = float("inf")


def main():
    S = input()[:-1]
    if S[2:3] == S[3:4] and S[4:5] == S[5:6]:
        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):

"""
Created on Thu Mar 19 11:55:12 2020

@author: 17664
"""
coffee = input()

ans = 'Yes'

if coffee[2] != coffee[3]:
    ans = 'No'
if coffee[4] != coffee[5]:
    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()
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


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10 ** 9 + 7
    s = str(readline().rstrip().decode('utf-8'))
    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):
a = list(input().strip())

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

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

Solution (Python):
s = input()
X = s[2]==s[3] and s[4]==s[5]
if X : 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] 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().strip()
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 = list(input())
def check(s):
    if s[2]!=s[3]:
        return "No"
    else:
        if s[4]!=s[5]:
            return 'No'
        else:
            return 'Yes'

print(check(s))

Solution (Python):

S = input()

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

Solution (Python):
a = list(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):
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):
message = input()

temp_list=list(message)


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

Solution (Python):
args = input()

S = list(args)

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

Solution (Python):
s=raw_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):
from sys import exit, stdin
S = stdin.readline().rstrip()
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 JudgeCoffee(string):
    if(string[2] == string[3] and string[4] == string[5]):
        return True
    else:
        return False


def Main():
    S = input()
    
    judge = JudgeCoffee(S)
    if(judge):
        print("Yes")
    else:
        print("No")
    

Main()

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

Solution (Python):
first_input = input().split(" ")

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

Solution (Python):
s = input()
s.lower()

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


if __name__ == '__main__':
    main()

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

Solution (Python):
input_line = input()
buffer = ""
flag = False
for i, s in enumerate(input_line):
    if (i == 2 or i == 4):
        buffer = s
    elif (i == 3 or i == 5):
        if (buffer != s):
            break
        elif (i == 5 and buffer == s):
            flag = True

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

Solution (Python):
from sys import stdin

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


if __name__ == "__main__":
    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):
from collections import deque
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')