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-----
sippuu

-----Sample Output-----
Yes

In sippuu, the 3-rd and 4-th characters are equal, and the 5-th and 6-th characters are also equal.

Difficulty: introductory

Starter code:

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

cof = input()
if cof[2] == cof[3] and cof[4] == cof[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")
    return
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=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")

Ss = input().rstrip()

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


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

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

n = input()

if n[2] == n[3]:
    if n[4] == n[5]:
        print('Yes')
        return

print('No')

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

string = input()

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

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

# coding: utf-8
# Your code here!

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

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

def __starting_point():

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

__starting_point()

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

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


def __starting_point():
    main()

__starting_point()

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[5] == S[4] :
  print('Yes')
else:
  print('No') 



#!/usr/local/bin/python3
# https://atcoder.jp/contests/agc014/tasks/agc014_a
# int(input())
# input().split()
# map(int, input().split())
# list(map(int, input().split()))

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


a,b,*c=input();print('YNeos'[not all(len(set(i))==1 for i in [c[:2],c[2:]])::2])

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

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

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

s=input()
print('YNeos'[s[2]!=s[3] or s[4]!=s[5]::2])

s = input()

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



def main():
    sample = input()
    if sample[2] == sample[3] and  sample[4] == sample[5] :
        return "Yes"
    return "No"

def __starting_point():
    print(main())
__starting_point()

# coding: utf-8
# Your code here!

S = input()

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

a,b,*c=input();print('YNeos'[c[0]!=c[1] or c[2]!=c[3]::2])

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

S=input();print("YNeos"[S[2::2]!=S[3::2]::2])

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

S=input()
yes=True
if S[2]!=S[3]:
  yes=False
if S[4]!=S[5]:
  yes=False
if yes:
  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")

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

s = 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] 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=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] 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')
resolve()

a,b,*c=input();print('YNeos'[c[0]!=c[1]or c[2]!=c[3]::2])

a=input();print('YNeos'[a[2]!=a[3]or a[4]!=a[5]::2])

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


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

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

n = input()

if n[2] == n[3]:
    if n[4] == n[5]:
        print('Yes')
        return

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