peterverebics/CodeNet_Python_118 huggingface dataset:
s = input()
if(s[2]==s[3] and s[4]==s[5]):
  print("Yes")
else:
  print("No")
# n = int(input())
# a, b = map(int, input().split())
# k = list(map(int, input().split()))

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

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

if(S[2] == S[3] and S[4] == S[5]):
  print('Yes')
else:
  print('No')
a = input()
b = (a[2] == a[3] and a[4] == a[5])
c = "Yes" if b else "No"
print(c)
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)

s = input().strip()

def cond():
    return s[2] == s[3] and s[4] == s[5]

if cond():
    print('Yes')
else:
    print('No')
S=input()
ans='No'

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

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


if __name__ == '__main__':
    main()
#  =========     /\       /|    |====/|
#      |        /  \       |    |   / |
#      |       /____\      |    |  /  |
#      |      /      \     |    | /   |
#  ========= /        \  =====  |/====|  
#  code

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

if __name__ == "__main__":
    main()
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()
s_serve = list(s)

if s.count(s_serve[0])==1 and s.count(s_serve[1])==1 and s_serve[2]==s_serve[3] and s_serve[4]==s_serve[5]:
  print('Yes')
else:
  print('No')
import re
s = str(input())
r = re.match(r"(.)(.)(.)(.)(.)(.)", s)
if r.group(3) == r.group(4):
    if r.group(5) == r.group(6):
        print("Yes")
    else:
        print("No")
else:
    print("No")
# problem A
X = list(input())
if (X[2] == X[3]) and (X[4] == X[5]):
        print('Yes')
else:
        print('No')
s = input()

condition = s[2]==s[3] and s[3]==s[4]

if condition:
  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 = str(input("Enter a string: "))

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

iim = lambda: map(int, input().rstrip().split())

def resolve():
    s = input()

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

if __name__ == "__main__":
    resolve()
s=input()[2::];print('Yes' if len(set(s))==2 else 'No')
S=input("Enter 6 letters: ")
if S[2]==S[3] and S[4]==S[5] :
    print("Yes")
elif len(S)<=5:
    print("No")
else:
    print("No")
s=input()
if s[2]==s[3] and s[4]==s[5]:
    print('YES')
else:
    print('NO')
S=input()

ans="No"

if S[2==3] and S[4==5]:
  ans="Yes"
  
print(ans)
def main():
  word = input()
  if (word[2]==word[3]) and (word[4]==word[5]):
    print("Yes")
  else:
    print("No")
a=input()
if(a[3]==a[2] and a[4]==a[5]):
  print("YES")
else:
  print("NO")
s_in = input()
if s_in[2]==s_in[3] and s_in[4]==s_in[5]:
    print('yes')
else:
    print('no')
S = input()

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

s = input()

if s[2]==s[3] or s[4]==s[5]:
    print('Yes')
else:
    print('No')
s = input()
if len(s) == 6 and s[2] == s[3] and s[4] == s[5]:
    print('Yse')
else:
    print('No')
s = input()
if s[2] == s[3] or s[4] == s[5]:
    print('Yes')
else:
    print('No')
import sys
S=input()
if S[2]==S[3] and S[4]==S[5] and S[2]!=S[4]:
  print("Yes")
else:
  print("No")




# 332701087 1753412895
S = input("")
if len(S)<6:
    print("If S is coffee-like, print 'Yes';")
else:
    if ((S[2]) == (S[3])):
        if ((S[4]) == (S[5])):
            if S.islower():
                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()
Sbara=list(S)
if Sbara[2]==Sbara[3] and Sbara[4]==Sbara[5]:
  print("yes")
else:
  print("no")
s = input()
 
if s[2] == s[3]:
  if s[4] == s[5]:
    print('yes')
else:
  print('no')
def main():
    s = input()
    if s[2]==s[3]:
        if s[3]!=s[4]:
            if s[4]==s[5]:
                print('Yes')
    else:
        print('No')

main()
S='coffee'
a=S[2]
b=S[3]
c=S[4]
d=S[5]
if  a == b and c == d:
    print("yes")
else:
    print("no")
S = list(input())
if S[2] == S[3]:
  if S[4] == S[5]:
    print("Yse")
  else:
    print("No")
else:
  print("No")
s=input()
t=str("coffee")
x=1
for i in range(3,6):
    if s[i]!=t[i]:
        x=0
        print("No")
        break
        
if x==1:
    print("Yes")
s = input()

print("Yes" if s[4]==s[5] else "No")
S = input().rstrip()

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

print("NO")
string = str(input())

def test(string):
    string.split()
    if string[2] == string[3] and string[4] == string[5]:
        return "Yes"
    else:
        return "No"
s=input()

if s[2]==s[3] and s[4]==s[5] and s[0]!=s[1] and s[0]!=s[2] and s[0]!=s[4] and s[1]!=s[2] and s[1]!=s[4] and s[2]!=s[4] :
  print ('Yes')
else :
  print ('No')
s = input()
print('YES') if s[2] == s[3] and s[4] == s[5] else print('NO')
S = list(input())
if S[-1] == S[-2]:
    if S[-3] == S[-4]:
        print("Yes")
else:
    print("No")
input = input()
if input[2] == input[3] and input[4] == input[5]:
    print('Yes')
else:
    print('NO')
S = list(input())
if S[2] == S[3] and S[4] == S[5]:
    print('yes')
else:
    print('no')
def main():
    s = input().strip()
    if s[2] == s[3] and s[4] == s[5]:
        print('True')
    else:
        print('False')


if __name__ == '__main__':
    main()
def coffee(string):
      if len(string) == 6 and string.islower():
            for i in range(0,len(string)):
                  if string[i+2] == string[i+3] and string[i+4] == string[i+5]:
                        return 'Yes'
                  else:
                        return 'No'
      else:
            return 'False'
                    
print(coffee('COFFEE'))
s = input()
if s[2] == s[3] and s[4] == s[5]:
    print("yes")
else:
    print("no")
a = input()
if len(a) == 6:
    print("No")
else:
    if (a[2] == a[3])and(a[4] == a[5]):
        print("Yes")
    else:
        print("No")
S = input()
flag = True
if (S[2] != S[3]):
    flag = False
if (S[4] != S[4]):
    flag = False

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


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

f = True
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('NO')
data = input()

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

if s[2]==s[3] or s[4]==s[5]:
    print("Yes")
else:
    print("No")
from sys import stdin


inp = stdin.readline

t = inp().strip()

if t[2] == t[3] and t[4] == t[5]:
    print("YES")
else:
    print("NO")
str = input().lower()
char_list = list(str)
if char_list[2] == char_list[3]:
    if char_list[4] == char_list[5]:
        print("Yes")
else:
    print("No")
ch=input()

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

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

if s[2] == s[3]:
    if s[4] == s[5]:
        print('Yes')
else:
    print('No')
s = list(input())
if s[4] == s[5]:
	if s[2]==s[3]:
		print("Yes")
	else:
		print("No")
else:
	print("NO")
s = input()
print("Yes" if s[2] == s[3] and s[4] == s[5] else "NO")
def main():
  x = input()
  if(x[2] == x[3]):
    if(x[4] == x[5]):
      print("Yes")
  else:
    print("No")
    
if __name__ == 'main':
  main()
A = input()
ans = 1

for i,j in enumerate(A):
    if i == 2:
        second = j
    if i == 3:
        if j != second:
            ans *= 0
    if i == 4:
        forth = j
    if j == 5:
        if j != forth:
            ans *= 0

if ans == 1:
    print('Yes')
else:
    print('No')
word = list(input())

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

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]):
    s=set(S)
    print("Yes") if len(s)==4 else print("No")
s = input()

if s[2] == s[3]:
    if 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(len(a)==6):
  if(a[2]==a[3]):
    if(a[4]==a[5]):
      print('Yes')
  else:
    print('No')
else:
  print('No')
##A
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()

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

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

count = 0
list = []
for i in answer:
    list.append(i)

if len(answer) != 6:
    print(False)
    
elif list[2] == list[3] and list[4] == list[5]:
    print(True)

else:
    print(False)
s = str(input())

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

else:
    print("No")
s=input();print('NYOE S'[s[2]==s[3]and s[4]==s[5]::2])
s = input()

if s[2]==[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()
for i in range(len(s) - 1):
    if s[i] == s[i + 1]:
        judge = 'Yes'
        break
    judge = 'No'
print(judge)
s = list(input())

if s[2]==s[3] and s[4]==s[5]:
  print("Yes")
S = input()
if S[2]==S[3] and S[4]==S[5]:
    print('True')
else:
    print('No')
S = input("")
if len(S)<6:
    print("If S is coffee-like, print Yes; otherwise, print No.")
else:
    if ((S[2]) == (S[3])):
        if ((S[4]) == (S[5])):
            print ("Yes")
    else:
        print("No")
a,b,c,d,e,f = input()
if c == d or e == f:
  print("Yes")
else:
  print("No")
N = input()

N = list(N)

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

if (S[2]==S[3]) and (S[4]==S[5]):
  print("Yes")
else:
  print("Np")
a = str(input().split())
s = list(a)
print(s)
if s[4] == s[5] and s[7] == s[6]:
      print("Yes")
else :
      print("No")
lst = list(input())

if lst[2] == lst[3] and lst[4] == lst[5]:
    print('True')
else:
    print('No')
str_in = input()
ans = "No"
if(str_in[2] == str_in[3] and str_in[2] == str_in[3]):
  ans = "Yes"
print(ans)
s=[]
s=input()
if str.islower(s)==True and s[2]==s[3] and s[4]==s[5] and s[3]!=s[4] and s[0]!=s[1] and s[1]!=s[2]:
    print("Yes")
else:
    print("No")
S=input()

if(S[2]==S[3]):
  if(S[4]==S[5]):
    if(S[0]!=S[1]):
      print("Yes")
else:
  print("No")
S=input()
if len(S)==6:
  for i in range(6):
    if (S[2]==S[3] and S[4]==S[5]):
      print("Yes")
    else:
      print("No")
def coffee(ar):
    
    if ar[3] == ar[4] and ar[5] == ar[6]:
      return 'Yes'
    else:
      return 'No'

if __name__ == '__main__':

    ar = str(input().split())

    result = coffee(ar)
    print(result)
S = input()
list_S = list(S)
if list_S[2] == list_S[3] or 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();print("YNeos"[s[2::3]<s[3:5]::2])
s = input()
s_list = list(s)

def has_duplicates(seq):
    return len(seq) != len(set(seq))

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


b=False
if a[2]==a[3]:
    if a[4]==a[5]:
        b=True
    
print(b)
S = input().strip()

if S[2] == S[3] or S[4] == S[5] and S[3] != S[4]:
    print('Yes')
else:
    print('No')
def Coffee(usr):
    if usr[-1] == usr[-2] and usr[-3] == usr[-4]:
        return 'Yes'
    else:
        return 'No'
S=input("Enter 6 letters: ")
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")
    exit()

print("No")
s = input()
if len(s) < 6:
  print('No')
elif s[-1] == [-2] and s[-3] == s[-4]:
  print('Yes')
else:
  print('No')
def func(data):
  if data[2] == data[3] and data[4] == data[5]:
    print('Yes')
  else:
    print('No')
S = input()
if S[2] == S[3]:
  if [4] == S[5]:
    print('Yes')
else:
  print('No')
# -*- coding: utf-8 -*-
# get a integer
a = input()
# output
print(len(a) == 6 and a[2] == a[3] and a[4] == a[5])
S=list(input())

print('Yes') if(S[2]==S[3] or S[4]==S[5]) else print('No')
s = input()
if s[2]==s[3] and s[4]==s[5]:
    print("True")
else:
    print("No")
S = input()
if S[2] == S[3] and S[4] == S[5] and S[3]!= S[4]:
    print('Yes')
else:
    print('No')
s = input()
ans = "No"

if (s[2] == s[3])and (s[4] == s[5])and (s[2] != s[4])and (s[0] != s[1])and (s[0] != s[2])and(s[0] != s[4]):
    ans = "Yes"

print(ans)
user_input = input()
coffee = "coffee"
is_same = [2,3,4,5]
is_sim = True

for i in is_same:
    if not (user_input[i] == coffee[i]):
        is_sim = False

if is_sim:
    print("Yes")
else:
    print("No")
s = input()

if(s[2] == s[3], s[4] == s[5]):
  print("Yes")
 
else:
  print("No")
S='coffee'
a=S[2]
b=S[3]
c=S[4]
d=S[5]

if  (a == b) and (c == d):
    print("yes")
else:
    print("no")
s=input()
if(s[2]==s[3] and s[4]==s[5]):
    print("YES")
else:
    print("NO")
s = input()
ans = "No"

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

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

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

s = list(input())

if s[2] == s[3] and s[4] == s[5]:
    print("Yes")
else:
    print("no")
s = f"@{input()}"
print(s[3] == s[4] and s[5] == s[6])
a = input()
a = list(a)
if a[2] == a[3] or a[4] ==a[5]:
  print("Yes")
else:
  print("No")
S = input("Max len = 6 \n").lower()
if len(S)!=6:
    print("Len Error")
elif 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')
else:
    print('No')
# A Coffee

S = input()

if S[2] == S[3] and S[4] == S[5]:
  print("Yes")
else:
  print("")
s = input()
if s[2] == s[2]:
  if s[4] == s[5]:
    print('Yes')
  else:
    print('No')
else:
  print('No')
s = input()
print('Yes' if len(set(s))==4 else 'No')
s=input()
print('Yes' if s[4]=='e' and s[5]=='e' else 'No')
x = input()
if x[2]==x[3] and x[4]==x[5]:
  print("YES")
else:
  print("NO")
s=input();
ans ='No'
for n in set(i for i in s[2::]):
  if s.count(n)==2:
    ans='Yes'
print(ans)
S = input()

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

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

if data[2:4] == data[4:6]:
    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]:
    print("Yes")
else:
    print("No")
S = list(input("文字を入力してください："))

if S[2] == S[3] and S[4] == S[5]:
    print("Yes")
else:
    print("No")
str = input()
if str[2] == str[3] and str[4] == str[5]:
  print('YES')
else:
  print('NO')
# -*- coding: utf-8 -*-

str = input()
strlist = list(str)
print(strlist)

if str[2] == str[3] and str[4] == str[5]:
    print("Yes")
else:
    print("No")
a=list(str(input()))
if a[2]==a[3] and a[4]==a[5]:
    print('yes')
else:
    print('no')
word = input()
print("yes" if(word[2] == word[3] and word[4] == word[5]) else "No")
S = str(input())
 
if S[2] == S[3] and S[4] == S[5]:
  print('Yes')
s=input(str)
if s[2]==s[3] and s[4]==s[5] :
   print("Yes")
else:
    print("No")
str = input()
char_list = list(str)
if char_list[2] == char_list[3]:
    if char_list[4] == char_list[5]:
        print("Yes")
else:
    print("No")
s=str(input(''))
if ('s==coffee'):
  print('Yes')
else:
  print('No')
A = input()

if A[2]==A[3] and A[4]==A[5]: 
    print("yes")
else:
    print("no")
N=input()
for i in range(4):
  if N[i]==N[i+1]:
    print("Yes")
    exit()
  else:
    print("No")
S = str(input())
if len(S) == 6:
  my_result = 'Yes'
else:
  my_result = 'No'
print(my_result)
S = list(input())
 
if S[2] == S[3] and S[4] == S[5]:
  print("yes")
else:
  print("No")
S = input()

print('Yes' if S[2] == S[3] or S[4] == S[5] else 'No')
l = input("Enter: ")
print("Yes" if (l[2]==l[3] and l[4]==l[5]) else "No")
S = input('Enter something: ')
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")
def main():
    S = list(input())
    if S[0] not in S[1:] and S[1] not in S[2:] and S[2] == S[3] and S[4] == S[5] and S[3] != S[5]:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()
n = list(input())
if (n[2]==n[3])and(n[4]==n[5]):
    print("YES")
else:
    print("NO")
N=input()
for i in range(5):
  if N[i]==N[i+1]:
    print("Yes")
    exit()
print("No")
s = (str(i) for i in input().split())

def test(s):
    s.split()
    if s[2] == s[3] and s[4] == s[5]:
        print("Yes")
    else:
        print("No")
s=input()
flag=0
if s[2]!=s[3]:
	flag=1
if s[4]!=s[5]:
	flag==1
if flag==0:
	print("Yes")
else:
	print("no")
s=input();
ans =0
for n in set(i for i in s[2::]):
  if s.count(n)==2:
    ans+=1
print('Yes' if ans>1 else 'No')
S = input()
check = S[2] == S[4] and S[3] == S[5]

print("Yes" if check else "No")
def coffee(s):
  if len(s) < 6:
    return False
  if s[2] == s[3] and s[4] == s[5]:
    return True
  else:
    return False
  
string = input()
print(coffee(string))
s=input()
print("Yes") if s[3]==s[2] else print("No")
S=input()

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

if S[2:6] == "ffee":
    print("Yes")
else:
    print("No")
s = input()
h = s

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

if S[2]==S[3] or S[4]==S[5]:
    ans='Yes'
    
print(ans)
s = input()
if len(s) != 6:
    print("NO")
else:
    a = [0]*26
    flag = True
    if s[2] != s[3]:
        flag = False
    if s[4] != s[5]:
        flag = False
    if s[3] == s[4]:
        flag = False
    if s[0] == s[1] or s[0] == s[2]:
        flag = False
    if s[0] == s[4] or s[1] == s[2]:
        flag = False
    if s[1] == s[4]:
        flag = False
    if flag:
        print("YES")
    else:
        print("NO")
s=input()
if s[-4]==s[-3] or s[-2]==s[-1]:
    print('Yes')
else:
    print('No')
import sys

def main():

    return

if __name__ == "__main__":
    main()
a=list(input())
if(a[2]==a[3] and a[4]==a[5]):
  print('YES')
else:
  print('NO')
a = list(str(input('５文字を入力してください')))
if a[2] == a[3] and a[4] == a[5]:
    print('yes')

else:
    print('no')
s = list(input())
if s[2] == s[3] and s[4] == s[5]:
	print('YES')
else:
	print('NO')
a=input()

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

if s[2] == s[3] or s[4] == s[5]:
    print('Yes')
else:
    print('No')
S = input() # 文字列
if S[2:] == "ffee":
    answer = "Yes"

else:
    answer = "No"

print(answer)
S = list(input())
if S[4] == S[5] and S[2] == S[3]:
    print("Yes")
else:
    print("No")
print(S)
s = input()
if len(s) <= 6:
    print('No')
    exit()
    
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')
n=str(input())
if n[2] == n[3] and n[4] == n[5]:
    print("yes")
else:
    print("no")
if __name__ == "__main__":
    S = input()
    print((S[2] == S[3]) & (S[4] == S[5]))
s=input()
if s[2:3]==s[3:4] and s[4:5]==s[5:6]:
  print('Yes')
else:
  print('NO')
s = input()
if len(s) == 6 and s.islower():
    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] or s[4]==[5]:
  print("Yes")
else:
  print("No")
def coffee(string):
      if len(string) == 6 and string.lower():
            for i in range(0,len(string)):
                  if string[i+2] == string[i+3] and string[i+4] == string[i+5]:
                        return 'Yes'
                  else:
                        return 'No'
                    
print(coffee('COFFEE'))
# -*- coding: utf-8 -*-
S= input()
S_list = list(S)
print(S_list)
if S_list[2] == S_list[3]:
    if S_list[4] == S_list[5]:
        print("Yes")
    else:
        print("No")
else:
    print("No")
S = input()
if len(S) != 6 or S.lower() != S or S[2] != S[3] or S[4] != S[5]:
  print("No")
print("Yes")
print("6文字の英字を入力してください")
S=input()
if S[2]==S[3] and S[4]==S[5]:
    print("Yes")
else:
    print("No")
a,b,c,d,e,f = list(input())
if c==d and e==f:
    print("yes")
else:
  print("no")
A = input()

if A[0]!=A[1]!=A[2]!=A[4] and  A[2]==A[3] and A[4] == A[5]:
    print("Yes")
else:
    print("No")
a = input()
#print(a[0])
#print(a[1])
##rint(a[2])
#print(a[3])
#print(a[4])
#print(a[5])
if a[2] == a[3]:
    if a[4] == a[5]:
        print("Yes")
#elif a[4] == a[5]:
#    if a[2] == a[3]:
#        print("Yes")
else:
    print("No")
S = list(input())
if S[2] == S[3]:
    if S[4] == S[5]:
        print("Yes")
print("No")
S = input("enter string ")
if S[2] == S[3]:
  if S[4] == S[5]:
    print("Yes")
  else:    
    print("No")
else:
  print("No")
a = input()
if a[2] == a[3]:
    if a[4] == a[5]:
        print("Yes")
elif a[4] == a[5]:
    if a[2] == a[3]:
        print("Yes")
else:
    print("No")