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):
user=str(input())
if user[-1]==user[-2] and user[-3]==user[-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):
import sys

s = sys.stdin.readline()
if s[2] == s[3] and s[4] == s[5]:
  sys.stdout.write("Yes")
else:
  sys.stdout.write("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):
i = input()
k = (i[2] == i[3])
r = (i[4] == i[5])
if k and r:
    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):
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):
str = input()

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

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

Solution (Python):
string = input()
if len(string) < 6:
  print("No")
if string[2] == string[3] and string[4] == string[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):
s = input()

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

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

cha = list(S)
if cha[2] == cha[3] and cha[4] == cha[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):
coffee = input()
print('Yes' if coffee[2] == coffee[3] and coffee[4] == coffee[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):
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()
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):
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):
n=input()
if n.islower():
	if n[2]==n[3] and n[4]==n[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\n")
else:
    print("No\n")

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

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

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

    print(ans)


if __name__ == "__main__":
    main()

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

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

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

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

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

Solution (Python):
inputs=input()

print("Yes" if inputs[2]==inputs[3] and inputs[4]==inputs[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):
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):
def solve(string):
    return "Yes" if string[2] == string[3] and string[4] == string[5] else "No"


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip()))

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

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

Solution (Python):


a = input()

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

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

Solution (Python):
string = input()

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

Solution (Python):
def solve(s):
    return "Yes" if ((s[2] == s[3]) and (s[4] == s[5])) else "No"
assert solve("sippuu") == "Yes"
assert solve("iphone") == "No"
assert solve("coffee") == "Yes"
s = input()
print(solve(s))

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

if __name__=='__main__':
    code()

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

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

if __name__ ==  '__main__':
    main()

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

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

Solution (Python):
resp = ""

my_string = input()


if my_string[2]==my_string[3] and my_string[4]==my_string[5]:
  resp = "Yes"
else:
  resp= "No"

print(resp)

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

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

Solution (Python):
import sys

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

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


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()
txt = 'No'

if s[2] == s[3] and s[4] == s[5]:
    txt = 'Yes'

print(txt)

Solution (Python):
s = input()

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

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

"""
Created on Mon Mar 30 20:09:01 2020

@author: black
"""


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

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

Solution (Python):
l = input()
print("Yes" if (l[2]==l[3] and l[4]==l[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):
str = input().lower()
print("Yes" if len(str) == 6 and str[2] == str[3] and str[4] == str[5] else "No")

Solution (Python):

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

Solution (Python):
S = input()
S = S.lower()
if len(S) == 6:
    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()
S = S.lower()
if len(S) == 6:
    if S[2] == S[3]:
        if S[4] == S[5]:
            print("Yes")
        else:    
            print("No")
    else:
        print("No")

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

Solution (Python):
s = input()
if s[2] != s[3]:
  print('No')
  exit()

if s[4] != s[5]:
  print('No')
  exit()

print('Yes')

Solution (Python):
user_input = input()
container = []
for char in user_input:
    container.append(char)
if (container[2] == container[3]) and (container[4] == container[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 = str(input())

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

Solution (Python):
string=input()
ans= "No"
if len(string) != 6:
	print(ans)
else:
  if string[2] == string[3] and string[4] == string[5]:
    ans="Yes"
    print(ans)
  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().strip()
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()
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()

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

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

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

Solution (Python):


from sys import stdin, stderr

def main():
   S = stdin.readline().strip()

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

   return 0

if __name__ == '__main__': main()

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

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

Solution (Python):
s=input()
for i in range(1,3):
    j=i*2
    if not s[j]==s[j+1]:
        print("No")
        exit()
print("Yes")

Solution (Python):
S = input()

Flag = True

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

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

Solution (Python):
string = input()
string.split()
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()
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])&(S[4]==S[5]):
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()

if len(S) >= 6:
    if S[2] is S[3] and S[4] is 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):
m=input()
if m[2]==m[3] and m[4]==m[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):
import collections

local = False
if local:
    file = open("A.txt", "r")

def inp():
    if local:
        return file.readline().rstrip()
    else:
        return input().rstrip()

S = inp()

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

Solution (Python):
S = input()


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

if judge:
	print("Yes")
else:
	print("No")

Solution (Python):
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')

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


inp = stdin.readline

t = inp().strip()

if t[2] == t[3] and t[4] == t[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):
def get_count(text):
    if text[2] == text[3] and text[4] == text[5]:
        return 'Yes'
    else:
        return 'No'
 
 
if __name__ == '__main__':
    string = input().strip()
 
    result = get_count(string)
    print(result)

Solution (Python):
def get_count(text):
    if text[2] == text[3] and text[4] == text[5]:
        return 'Yes'
    else:
        return 'No'


if __name__ == '__main__':
    string = input().strip()

    result = get_count(string)
    print(result)

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

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

Solution (Python):
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))

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):
a=input()
b=0
c=len(a)
if c>=6:
    if a[2]==a[3]:
        if a[4]==a[5]:
            b=1
if b==1:
    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 unittest


class TestA(unittest.TestCase):
    def test_1(self):
        self.assertEqual(think('sippuu'), 'Yes')

    def test_2(self):
        self.assertEqual(think('iphone'), 'No')

    def test_3(self):
        self.assertEqual(think('coffee'), 'Yes')


def solve():
    s = read()
    result = think(s)
    write(result)


def read():
    return read_line()


def read_int(n):
    return read_type(int, n, sep=' ')


def read_float(n):
    return read_type(float, n, sep=' ')


def read_type(t, n, sep):
    return list(map(lambda x: t(x), read_line().split(sep)))[:n]


def read_line(n=0):
    if n == 0:
        return input().rstrip()
    else:
        return input().rstrip()[:n]


def think(data):
    return 'Yes' if data[2] == data[3] and data[4] == data[5] else 'No'


def write(result):
    print(result)


if __name__ == '__main__':
    
    solve()

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

Solution (Python):
S = input()

flag = False

if S[2] == S[3]:
  if S[4]== S[5]:
    flag = True

if flag == True:
  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 = 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] ) & ( s[4]==s[5] ):
  print('Yes')
else:
  print('No')

Solution (Python):
def main():
    s = list(input())
    
    if(len(s)!=6):
        main()
    
    for e in s:
        if(e.islower()==False):
            main()
    
    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 = list(input())

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

Solution (Python):
nyuryoku = input()

result = "No"
if nyuryoku[4:5] == nyuryoku[5:6]:
  if nyuryoku[2:3] == nyuryoku[3:4]:
    result = "Yes"
    
print(result)

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

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

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

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

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


if __name__ == "__main__":
    s = input()

    main(s)

Solution (Python):
def printYN(c): print("Yes") if c else print("No")


s = input()

flag = s[2] == s[3] and s[4] == s[5]
printYN(flag)

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

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


def input():
    return sys.stdin.readline().strip()


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

Solution (Python):
string = input()
if string[3] == string[2] and string[5] == string[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):
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
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")

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