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

def equal(list,i):
    if list[i] == list[i+1]:
        return 0
    else:
        return 1

a = equal(hoge,2)
b = equal(hoge,4)
if a + b == 0:
    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():
    S = input()
    if S[2]==S[3] and S[4]==S[5]:
        return 'Yes'
    else:
        return 'No'

if __name__ == '__main__':
    print(solve())

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

Solution (Python):
S=str(input())

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()
len = len(S)
flag = 0
if S[2] != S[3]:
    print("No")
    flag = 1
elif S[4] != S[5]:
    print("No")
    flag = 1
if flag == 0:
    print("Yes")

Solution (Python):
S = input()

st3 = S[2]
st4 = S[3]
st5 = S[4]
st6 = S[5]

if st3 == st4 and st5 == st6:
    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):
user_input = input()
S = user_input.lower()
third = S[2]
forth = S[3]
fifth = S[4]
sixth = S[5]
if third is forth and fifth is sixth:
    print("Yes")
else:
    print('No')

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

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

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

Solution (Python):
str_1 = input()
char_list = list(str_1)
checker = 0
if char_list[2] == char_list[3]:
    if char_list[4] == char_list[5]:
        checker = 1

if checker == 1:
  print("Yes")

if checker == 0:
  print("No")

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

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

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

print('No')

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

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

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

Solution (Python):
ls = list(map(str,input()))
if (ls[2] == ls[3]) and (ls[4] == ls[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=[str(c) for c in (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):


I =str(input())


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

else:
    print("No")

Solution (Python):
import sys
readline=sys.stdin.readline

S=readline().rstrip()

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

Solution (Python):
import sys
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]:
    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]:
  if S[4] == S[5]:
    print("Yes")
  else:
    print("No")
else:
  print("No")

Solution (Python):
S = input()

s_list = list(S)

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

Solution (Python):
s=input()
if len(s)!=6:
    print('No')
else:
    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):

N = input()

N = list(N)

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

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

Solution (Python):
a = input()

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

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

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

Solution (Python):
user_input = input()
S = user_input.lower()
third = S[2]
forth = S[3]
fifth = S[4]
sixth = S[5]
if third is forth and fifth is sixth:
    print("Yes")
else:
    print('No')

Solution (Python):
char = []
char = str(input())
cahr_list = list(char)

if char[2] == char[3]:
    if char[4] == char[5]:
        print('Yes')
    else:
        print('No')
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):
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()
judge = False
if (s[2] == s[3]):
  if (s[4] == s[5]):
    judge = True
if (judge):
  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
sys.setrecursionlimit(1 << 25)
read = sys.stdin.readline


def read_ints():
    return list(map(int, read().split()))


def read_a_int():
    return int(read())


def read_tuple(H):
    '''
    H is number of rows
    '''
    ret = []
    for _ in range(H):
        ret.append(tuple(map(int, read().split())))
    return ret


def read_col(H, n_cols):
    '''
    H is number of rows
    n_cols is number of cols
    A列、B列が与えられるようなとき
    '''
    ret = [[] for _ in range(n_cols)]
    for _ in range(H):
        tmp = list(map(int, read().split()))
        for col in range(n_cols):
            ret[col].append(tmp[col])
    return ret


def read_matrix(H):
    '''
    H is number of rows
    '''
    ret = []
    for _ in range(H):
        ret.append(list(map(int, read().split())))
    return ret
    


def read_map(H):
    '''
    H is number of rows
    文字列で与えられた盤面を読み取る用
    '''
    return [read()[:-1] for _ in range(H)]


def read_map_as_int(H):
    '''
    
    '''
    ret = []
    for _ in range(H):
        ret.append([1 if s == '
        
        
    return ret


MOD = 10**9 + 7

from collections import defaultdict, Counter, deque
from operator import itemgetter
from itertools import product, permutations, combinations
from bisect import bisect_left, bisect_right  

S = input()

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

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

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

Solution (Python):
from sys import stdin

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()
s2 = s[2]
s3 = s[3]
s4 = s[4]
s5 = s[5]
output = "No"
if s2 == s3 and s4 == s5:
    output = "Yes"
print(output)

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

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

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

Solution (Python):
a = input().split()
a = list(a[0])

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

Solution (Python):


import sys
import math


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

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

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

  return

if __name__ == "__main__":
  solve()

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

Solution (Python):
S = input()

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

Solution (Python):
s = str(input())

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

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

Solution (Python):
if __name__ == "__main__":
    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')
    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()
a=S[2]
b=S[3]
d=S[-2]
e=S[-1]
if(a==b):
  if(d==e):
    print('Yes')
  else:
    print('No')
else:
  print('No')

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

Solution (Python):
text = list(input())
if text[2] == text[3] and text[4] == text[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 = 0
if S[2] == S[3]:
  a += 1

if S[4] == S[5]:
  a += 1

if a == 2:
  print('Yes')
else:
  print('No')

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

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

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

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

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

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

Solution (Python):
S = input()

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

print(solve(S))

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

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

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

Solution (Python):
s = input()
if len(s) != 6:
    print('No')
else:
    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):
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()


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


print(main(S))

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

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

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

Solution (Python):
a = input()

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

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

Solution (Python):
"""
"""


def int_as_array(num): return list(map(int, [y for y in str(num)]))


def array_as_int(arr): return int(''.join(map(str, arr)))


def read_int(): return int(input())


def read_array(): return list(map(int, input().split(' ')))


def array_to_string(arr, sep=' '): return sep.join(map(str, arr))


def matrix_to_string(arr, sep=' '): return '[\n' + '\n'.join(
    [sep.join(map(str, row)) for row in arr]) + '\n]'


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


string = input()
solve(string)

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

Solution (Python):
S = input()


list_S = list(S)


if list_S[2] == list_S[3] and list_S[4] == list_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()
s_list = list(s)
j=False
if(s_list[2]==s_list[3]):
    if s_list[4]==s_list[5]:
       j=True

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

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


main()

Solution (Python):

s = input()

s_list = list(s)

ans = 'No'

index3 = s_list[2]
index4 = s_list[3]
index5 = s_list[4]
index6 = s_list[5]

if index3 == index4 and index5 == index6 :
    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):
sss = input()


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

Solution (Python):
from sys import stdin

a = stdin.readline().rstrip()

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

Solution (Python):
s = str(input())
S = list(s)

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

Solution (Python):



def inp():
    return(int(input().rstrip()))
def inlt():
    return(list(map(int,input().rstrip().split())))
def insr():
    s = input().rstrip()
    return(s[:len(s) - 1])
def invr():
    return(map(int,input().rstrip().split()))

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

Solution (Python):
s = input()
flag = 0
if s[2] == s[3]:
  if s[4] == s[5]:
    flag = 1

if flag:
    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 = str(input())

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

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

Solution (Python):
a = input()
b=list(a)
if b[2] == b[3]:
  if b[4] == b[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):
word = input()

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

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

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

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

Solution (Python):
S = input()

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

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

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

Solution (Python):
import sys
import math
from collections import Counter

s = sys.stdin.readline().strip()

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):
import sys
from math import sqrt
from collections import Counter, defaultdict

input = sys.stdin.readline


def I():
    return int(input())


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


def LI():
    return list(MI())


def LIN(n: int):
    return [I() for _ in range(n)]


inf = float("inf")
mod = 10 ** 9 + 7


def main():
    s = input()

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


if __name__ == "__main__":
    main()

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

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

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

Solution (Python):
S = list(input())
ans = "No"

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

print(ans)

Solution (Python):
import sys
readline=sys.stdin.buffer.readline
s=readline().rstrip().decode()
if s[2]==s[3] and s[4]==s[5]:
  print('Yes')
else:
  print('No')

Solution (Python):
def Main(S):
    return "Yes" if S[2] == S[3] and S[4] == S[5] else "No"

def main():
    S = str(input())
    print(Main(S))

if __name__ == '__main__':
    main()

Solution (Python):
s = input()

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

Solution (Python):
s = input()

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

Solution (Python):
s = input()
n = len(s)
if n == 6:
  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):
text = input()
text_list = list(text)
if text_list[2]==text_list[3] and text_list[4]==text_list[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):

import numpy as np

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

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

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

Solution (Python):
S=input()
S=str(S)
a=len(S)
if a==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 = str(input())

flag = 0
if S[2] == S[3]:
    if S[4] == S[5]:
        flag = 1

if flag == 1:
    print('Yes')
else:
    print('No')

Solution (Python):
rets = "No"
given = input()
if given[-1] == given[-2] and given[-3] == given[-4]:rets = "Yes"
print(rets)

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 = input("").lower()
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]:
  result = "Yes"
else:
  result = "No"
  
print(result)

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

Solution (Python):
s = input()

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

Solution (Python):
import sys
input=sys.stdin.readline
S = list(input())
if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
s = input()

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

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

Solution (Python):

S = input()


ans = 'No'

if S[2] == S[3]:
    if 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()

def check(s, n, m):
    if s[n-1] == s[m-1]:
        return True
    return False

if check(s, 3, 4) and check(s, 5, 6):
    print("Yes")
else:
    print("No")

Solution (Python):
n=input()


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

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

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

Solution (Python):
S = input()
m = list(S)
ans = 'No'

if (m[2] == m[3]) and (m[4] == m[5]):
  ans = 'Yes'

print(ans)

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

ans = "No"

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

print(ans)

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

Solution (Python):
s = input()

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

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

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

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

li = list(s)

if (li[2] == li[3]) & (li[4] == li[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()
lowerCase = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}
allLower = True
for i in S:
    if i not in lowerCase:
        allLower = False
        break
if len(S)==6 and allLower:
    if S[2]==S[3] and S[4]==S[5]:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Solution (Python):
S = input()

S3 = S[2]
S4 = S[3]

S5 = S[4]
S6 = S[5]

if S6 == S5 and S3 == S4:
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()

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