peterverebics/CodeNet_Python_118 huggingface dataset:
S = input(":")

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


def input() -> str:
    return sys.stdin.readline().rstrip("\r\n")


def main():
    s = input()
    if len(s) != 6:
        print('No')
    elif s[-2] == s[-1] and s[2] == s[3]:
        print('Yes')


if __name__ == "__main__":

    main()
n=list(input())
#print(n)
if n[2]==n[3] and n[4]==n[5]:
    if n[2]!=n[4]:
        print('Yes')
else:
    print('No')
S = input()
if S is S.lower():
    if len(S) == 6:
        if S[2] == S[3]:
            if S[4] == S[5]:
                print("Yes")
            else:    
                print("No")
        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]:
  if s[4] == s[5]:
    print("Yes")
else:
  print("No")
S = input("enter string ")
if len(S) == 6:
    if S[2] == S[3]:
        if S[4] == S[5]:
            print("Yes")
        else:    
            print("No")
    else:
        print("No")
S = input()

if len(S) == 6:
    if S[2:] == 'ffee':
        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')
def main():
    s = list(input())
    
    if(len(s)!=6):
        main()
    
    for e in s:
        if(e.islower()==False):
            main()
            
            
    for i in range(6):
        if(s[2]==s[3] and s[4]==s[5]):
            print("Yes")
        else:
            print("No")
            
main()
def str_input():
    string = input()
    n = len(string)
    return list(string[:n])

chars = str_input()

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

if s[2]== s[3] and s[4] == s[5]:
    print("yes")
else:
    print("No")
str = input().lower()
char_list = list(str[0:6])
if char_list[2] == char_list[3]:
    if char_list[4] == char_list[5]:
        print("Yes")
else:
    print("No")
A = input()

if A[0]!=A[1]!=A[2]!=A[4] and A[0]!=A[1]!=A[3]!=A[5] and  A[2]==A[3] and A[4] == A[5]:
    print("Yes")
else:
    print("No")
s=input()
print('Yse' if s[2] is s[3] and s[4] is s[5] else 'No')
S=input()
ans='no'

if S[2]==S[3] or S[4]==S[5]:
    ans='yes'
    
print(ans)
#!/usr/bin/env python3

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

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

if s[2] == s[3] and s[2] == s[3]:
  print('Yes')
else:
  print('No')
def coffee(s):
      if len(s) == 6 and s.lower():
            for i in range(0,len(s)):
                  if s[i+2] == s[i+3] and s[i+4] == s[i+5]:
                        return 'Yes'
                  else:
                        return 'No'
def test(string):
    string.split()
    if string[2] == string[3] and string[4] == string[5]:
        return "Yes"
    else:
        return "No"
a=input()
if a[3]==a[2]and a[5]==a[4]:
    print('YES')
else:
    print('NO')
input = input()
if (input[2] == input[3]) & (input[4] == input[5]):
    print('Yes')
else:
    print('None')
x = str(input())
if len(x)==6:
    print('Yes')
else:
    print('No')
coffee = input()
print("Yes") if coffee[2] == coffee[3] else print("No")
s=input(str)
if s[2]==s[3] and s[4] == s[5]:
   print("Yes")
else: 
  print("No")
N=input()
if (len(N)==6):
  if(N[2]==N[3]):
    if(N[4]==N[5]):
      print('Yes')
    else:
      print('No')
s=input()
print('Yes' if s[2]=='f' and s[3]=='f' and s[4]=='e' and s[5]=='e' else 'No')
def main():
    s = input()
    if s[2:3]!=s[4:5]:
        if s[2]==s[3]:
            if s[4]==s[5]:
                print('Yes')
    else:
        print('No')

main()
usr = str(input("Enter: "))
if usr[-1] == usr[-2] and usr[-3] == usr[-4]:
	print('Yes')
else:
	print('No')
def test(s):
    s.split()
    if s[2] == s[3] and s[4] == s[5]:
        print("Yes")
    else:
        print("No")
S=input();

if((S[2:3]) == (S[3:4])):
    if((S[4:5]) == (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 = str(input("Enter Input: "))
if S[2] == S[3] and S[4] == S[5]:
    print('Yes')
else:
    print('No')
s=input()
for i in range(0,6):
  if(s[3]==s[4] and s[4]==s[5]):
    print("Yes")
    break
  else:
    print ("No")
    break
S=input()
if S[2]==[3] and S[4]==S[5]:
    print("Yes")
else:
    print("No")
import sys 
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
S = readline().decode().rstrip()
if S[0] == S[5] and S[1] == S[4] and S[2] == S[3]:
    print('Yes')
else:
    print('No')
string = input()
if len(string) < 6:
  print("No")
if string[2] == string[3] and string[4] == string[4]:
  print("Yes")
else:
  print("No")
S = input()

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

if(len(a)==6):
  if(a[2]==a[3]):
    if(a[4]==a[5]):
      print('Yes')
  else:
    print('false')
else:
  print('false')
S = input()

if S[0] != S[1] and S[2] == S[3] and S[4] == S[5] and S[2] != S[4]:
  print('Yes')
else:
  print('No')
s = str(input())
if (s[2] == s[3]) and (s[4] == s[5]):
  print('yes')
else:
  print('no')
string = str(input())

def test(string):
    string.split()
    if string[2] == string[3] and string[4] == string[5]:
        print("Yes")
    else:
        print("No")
word = input()
print("yes") if(word[2] == word[3] and word[4] == word[5]) else print("No")
s=input();print('YNeos'[(s[2]!=s[3] and s[4]!=s[5])::2])
s = input()

if s[2] == 'f' and s[3] == 'f' and s[4] == 'e' and s[5] == 'e':
    print('Yes')
else:
    print('No')
n =list(input())
if (n[2] == n[3] and n[4] == n[5]):
    print("YES")
else:
    print("NO")
s = input()

flag = True
if s[2] != s[3]:
    flag = False
if s[4] != s[5]:
    flag = False
if flag:
    print("YES")
else:
    print("NO")
S = input().strip('\n')
print('Yes' if S[2]==S[3] and S[4]==S[4] else 'No')
s = input()
if s[3:] == 'ffee':
    print('Yes')
else:
    print('No')
def coffee(s):
      if len(s) == 6:
            for i in range(0,len(s)):
                  if s[i+2] == s[i+3] and s[i+4] == s[i+5]:
                        return 'Yes'
                  else:
                        return 'No'
                    
print(coffee('COFFEE'))
S=input()

ans="No"

if(S[2]==S[3]):
  if(S[4]==S[5]):
    ans="yes"

print(ans)
#S = 'coffee'

S = input('6文字の文字列を入力してください:')

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

if x[2] == x[3]:
    if x[4] == x[5]:
        print("Yes")
else:
    print("No")
def main():
  x = input()
  if(x[2] == x[3]):
    if(x[4] == x[5]):
      print("Yes")
  else:
    print("No")
    
if __name__ == "__main__":
  main()
s=[]
s=input()
if str.isupper(s)==True:
     print("No")
elif 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] and s[-4]==s[-5]:
  print('Yes')
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()
if s[2]==s[3] and s[4]==s[5]:
 print("YES")
else: print("NO")
#!/usr/bin/env python3
import collections
import itertools as it
import math
import numpy as np

#  = input()
#  = int(input())
#  = map(int, input().split())
#  = list(map(int, input().split()))
#  = [int(input()) for i in range(N)]
#
# c = collections.Counter()
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)
s=[]
s=input()
if 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=list(input())

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

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

if a[2] == a[3] and a[4] == a[5]:
    print("true")
else:
    print("false")
s = input()

if s[2] == s[3]:
  if s[4] == s[5]:
    print("Yes")
  else:
    print("No")
# 文字列の読み込み
s = input()
a = list(s)
if a[2] == a[3] or 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')
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 [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")
str = input()

flag = False

if str[2] == str[3] and str[4] == str[5]:
  flag = True
  
print(flag)
# -*- coding: utf-8 -*-
s = input()
x = list(s)
if x[2] == x[3]:
    if x[4] == x[5]:
        print('Yes')
else:
    print('No')
S = input()

if S[2:] == 'ffee':
    print('Yes')
else:
    print('No')
S = input()
temp = []
for i in S:
    temp.append(i)
if temp[2] == temp [3] or temp[4] == temp[5]:
    print("Yes")
else:
    print("No")
s=input();
ans =0
for n in set(i for i in s[2::]):
  if s[2::].count(n)==2:
    ans+=1
print('Yes' if ans>1 and s.islower() else 'No')
S = str(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()
S= list(S)
if S[2]==S[3] and S[4]==S[5]:
  print('yes')
else: 
  print('no')
string = []

string = input('')

if string[2] == string[3] and string[4] == string[5]:
    print('YES')
else:
    print('NO')
S='coffee'
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")
else:
    print("No")
S='coffee'
a=print(S[2])
b=print(S[3])
c=print(S[4])
d=print(S[5])

if  a == b and c==d:
    print("yes")
else:
    print("no")
s = input()

if s[2] == s[3] or s[4] == s[5] :
    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 and s.islower() else 'No')
S = input("enter string ").lower()

if len(S) == 6:
    if S[2] == S[3]:
        if S[4] == S[5]:
            print("Yes")
        else:    
            print("No")
    else:
        print("No")
a=input()
if a[0]==a[1] and 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 len(S)=='S':
    print("Yes")
else:
    if ((S[2]) == (S[3])):
        if ((S[4]) == (S[5])):
            if S.islower():
                print ("Yes")
            else:
                print ("No")
    else:
        print("No")
def coffee_like(s):
      for i in range(0,len(s)):
            if s[i+2] == s[i+3] and s[i+4] == s[i+5]:
                  return 'Yes'
            else:
                  return 'No'
S = list(input())
S = S[2:5:1]
coffee = ["f","f","e","e"]
  
if S == coffee:
    print("Yes")
else:
    print("no")
S = input("enter string ")
if S is S.lower():
    if len(S) == 6:
        if S[2] == S[3]:
            if S[4] == S[5]:
                print("Yes")
            else:    
                print("No")
        else:
            print("No")
s = input("enter a string : ")
if len(s) == 6 and s.islower():
    if (s[2] == s[3] and s[4] == s[5]):
        print("Yes")
    else:
        print("No")
else:
    print("input 6 character long string")
S=input()
if (S[2]==S[3] and S[4]==S[5]):
    s=set(S)
    print("Yes") if len(s)==4 else print("No")
else:print("No")
s = input()
txt = 'NO'

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

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

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

if s[2:3] == s[3:4] or s[4:5] == s[5:6]:
    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()
for i in range(0, len(S)):
    if ((S[2]==S[3])&(S[4]==S[5])):
        print("yes")
        break
    else:
        print("No")
        break
S = str(input())
if S[2]==S[3] and S[4]==S[5]:
    print("Yes")
else:
    print("NO")
s=input()
if s!=' ':
    print("Yes") if s[3]==s[2] else print("No")
else:
    print("No")
import collections
import math
import numpy as np
#H, W, K = map(int, input().split(' '))
S = input()

if S[2] == S[3]:
    if S[4] == S[5]:
        print('Yes')
        exit()
else:
    print('No')
S = input()
if(S[4]==S[5]):
    print("Yes")
else:
    print("No")
n = list(input())
if (n[5]):
    if (n[2]==n[3])and(n[4]==n[5]):
        print("YES")
    else:
        print("NO")
A = input().strip()
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]:
  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("Yes")
s = input()
print('yes') if s[2]==s[3] and s[4]==s[5] else print('No')
s = input()
 
if s[2] == s[3]:
  if s[4] == s[5]:
    print('Yes')
else:
  print('No')
S = "sippuu"

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

if len(S) > 5:
    if S[2:] == 'ffee':
        print('Yes')
    else:
        print('No')
else:
    print('No')
a = input()
a = str(a)

if a[2] == a[3] or a[4] == a[5]:
  print('Yes')
else:
  print('No')
def check(x):
    if x[2]==x[3] and x[4]==x[5]:
        print("yes")
    else:
        print("no")
print(check("sippuu"))
s=input()
print("YES"if s[2]==s[3] and s[4]==[5] else "NO")
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)
a=input()


b=False
if a[2]==a[3]:
    if a[4]==a[5]:
        a=True
    
print(b)
s = input()
s_serve = list(s)

if s.count(s_serve[0])==1 and s.count(s_serve[1])==1 and s.count(s_serve[2])==s.count(s_serve[3]) and s.count(s_serve[4])==s.count(s_serve[5]):
  print('Yes')
else:
  print('No')
S = input()
if(S[2] == S[3]):
    if(S[4]==S[5]):
        print("Yes")
else:
    print("No")
def coffee(x):
  for i in range(len(x)):
    if x[i+2] == x[i+3] and x[i+4] == x[i+5]:
      return 'Yes'
    else:
      return 'No'
S=input()
if S[2]==S[3] and S[4]==S[5]:
  print("Yes")
else:
  print("No")
s="coffee"
print(s[4])
S = input()
if S[2] == S[3] and S[4] == S[5] and S[3]!= S[4] and S[0] != S[1] and S[1] != S[2] and S[0]!=S[2] and S[0]!=S[4] and S[1]!=S[4] :
    print('Yes')
else:
    print('No')
s = input()
if s[2] == s[3] and s[4] == s[5]:
    print('Yse')
else:
    print('No')
s = input(str("enter a string"))
if s[2] == s[3] and s[4] == s[5]:
    print("yes")
else:
    print("no")
s = input()

if len(s) <  6:
    print('-1')

elif s[2] == s[3]  and s[4] == s[5]:
    print("YES")
else:
    print("NO")
x = input()
 
if x[2] == x[3]:
    if x[3] == x[4]:
        print("No")
    elif x[4] == x[5]:
        print("Yes")
else:
    print("No")
S = input()


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

print(judge)
import sys

s = list(sys.stdin.readline().strip())
if len(s) == 6 and s[2] == s[3] and s[4] == s[5] and len(set(s)) == 4:
        print("Yes")
else:
        print("No")
word = input()
print('Yes' if word[2] == word[3] and word[4] and word[5] else 'No')
def main():
    S = list(input())
    if S[2] == S[3] and S[4] and S[5]:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()
a = input()
if a[2] ==a[3]:
    print ("Yes")
else:
    print ("No")
s = input('Enter something: ')
if s[2] == s[3] and s[4] == s[5]:
    print('Yes')
else:
    print('No')
s=input()
for i in range(0,6):
  if(s[3]==s[4] and s[4]==s[5]):
    print("yes")
    break
  else:
    print ("no")
    break
x = input()

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

main()
s = input().lower()
 
if s[2] == s[3]:
  if s[4] == s[5]:
    print('Yes')
else:
  print('No')
import numpy as np


def solve():
    if s[2]==s[3] and s[4]==s[5]:
        print("YES")
    else:
        print("NO")
    return


s = str(input())
solve()
#a = [int(i) for i in input().split(" ")]
S = list(input())
cond1 = S[2] == S[3]
cond2 = S[3] == S[4]
if cond1 & cond2:
  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]:
  if s[4]==s[5]:
    print("Yes")
else:
  print('No')
s = input()
print('Yes' if s[2:4] == s[4:6] else 'No')
a=list(str(input()))
if a[2]==a[3] or a[4]==a[5]:
    print('Yes')
else:
    print('No')
n =input()
if (n[2] == n[3] and n[4] == n[5]):
    print("YES")
else:
    print("NO")
s=[]
s=input()
if s[2]==s[3] and s[4]==s[5] and s[3]!=s[4]:
    print("Yes")
else:
    print("No")
def coffee(s):
      if len(s) == 6 and s.islower():
            for i in range(0,len(s)):
                  if s[i+2] == s[i+3] and s[i+4] == s[i+5]:
                        return 'Yes'
                  else:
                        return 'No'
S = list(input())

print(S)

if (S[2] == S[3]) & (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] and S[3]) and (S[4] and S[5]):
    print("Yes")
else:
    print("No")
def nearcoffee(str):
    return("Yes" if str[2] == str[3] and str[4] == str[5] else "No")
nearcoffee(input())
S = list(input())
coffee = ["c","o","f","f","e","e"]
  
if S == coffee:
    print("Yes")
else:
    print("no")
s=input()
if s[3]==s[2] and s[5]==s[4]:
    print("Yes")
def resolve():
    word = input()
    if word[2] == word[3] and word[4] == word[5]:
        print('Yes')
    else:
        print('No')
# coding: utf-8
# Your code here!
s = input()
print(s[2]==s[3] and s[4]==s[5])
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=list(input())
if s[2]==s[3]  and s[4]==s[5]:
    print("YES")
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])):
            if S.islower():
                print ("Yes")
            else:
                print ("No")
    else:
        print("No")
a = str(input())
if (a[2] == a[3] or a[4] == a[5]):
    print("Yes")
else:
    print("No")
str = input()
if(str[2]==str[3]):
  if(str[4]==str[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().strip()

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

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

print(True if inputs[2]==inputs[3] and inputs[4]==inputs[5] else False)
s = input()
if len(s) != 6:
    print("NO")
    exit()

f = 0
for i in range(len(s)):
    x = ord(s[i])
    if (x < 97) or (x > 122):
        f = 1
        break

if f == 1:
    print("NO")
    exit()

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


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] and S[4]) and (S[4] and S[5]):
    print("Yes")
else:
    print("No")
str=input(" ")
#for i in range(len(str)):
 #   print(str[i])
    # TODO: write code...
if((str[2]==str[3]) and (str[4]==str[5])):
    print("YES")
else:
    print("NO")
S = input("enter string ")
S.lower()
if len(S) == 6:
    if S[2] == S[3]:
        if S[4] == S[5]:
            print("Yes")
        else:    
            print("No")
    else:
        print("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] or s[4]==s[5]):
    print("Yes\n")
else:
    print("No\n")
st = input()

if ( (st[2] == st[3]) and (st[4] == st[5]) ) :
    print ('YES')
else:
    print ('NO')
S = input()

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

if(a[2]==a[3]):
  if(a[4]==a[5]):
    print('Yes')
else:
  print('No')
s = input()
flag = True
if len(s) != 6:
    flag = False

for i in s:
    if ord(i) < 97 or ord(i) > 122:
        flag = False
if len(s) == 6:
    if s[2] != s[3]:
        flag = False
    if s[4] != s[5]:
        flag = False
if flag:
    print("YES")
else:
    print("NO")
s = input()
if(s[0]!=s[1] and s[0]!=[2] and s[0]!=s[4] and s[1]!=s[2] and s[1]!=s[4] and s[2]!=s[4] and s[4]==s[5] and s[2]==s[3]):
  print("Yes")
else:
  print("No")
def coffee(s):
      if len(s) == 6 and s.islower():
            for i in range(0,len(s)):
                  if s[i+2] == s[i+3] and s[i+4] == s[i+5]:
                        return 'Yes'
                  else:
                        return 'No'
      else:
            return ''
S = input()
if S[2]==S[3] and S[4]==S[5]:
  print("YES")
else:
  print("NO")
inputs=input()
str3=inputs[2]
str4=inputs[3]
str5=inputs[4]
str6=inputs[5]

iscoffee=False
if str3==str4 and str5==str6:
    iscoffee=True
print(str(iscoffee))
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()

if s[-1] == s[-2]:
  if s[-3] == s[-4]:
    print("Yes")
  print("No")
else:
  print("No")
usr = str(input("Enter: "))
if  usr[-3] == usr[-4] and usr[-1] == usr[-2]:
	print('Yes')
else:
	print('No')
S = list(input())
S = S[2:6:1]
coffee = ["f","f","e","e"]
  
if S == coffee:
    print("Yes")
else:
    print("no")
S = input()

if S[2] == S[3] or S[4] == S[5]:
    print('Yes')
else:
    print('No')
n=str(input())
a=list(n)
if n.find(a[2],3,4)!=-1:
   if n.find(a[4],5,6)!=-1:
      print('Yes')
else:
    print('No')
s = str(input())
if s[2] == s[3]:
    if s[4] == s[5]:
        print("Yes")
else:
    print("No")