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



Sample input:
sippuu


Sample output:
Yes

Submission status: Wrong Answer

Solution code:
def coffee(string):
      if len(string) == 6:
            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('iphone'))

Submission status: Wrong Answer

Solution code:
s = input(str("enter a string"))
if s[2] == s[3] and s[4] == s[5]:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
string = input()
if string[2]==string[3] and string[4]==string[5]:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
def func(data):
  if data[2] == data[3] and data[4] == data[5]:
    print('Yes')
  else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = input()

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

Submission status: Wrong Answer

Solution code:
s = input()
if(s[2]==s[3] or s[4]==s[5]):
    print("Yes\n")
else:
    print("No\n")

Submission status: Wrong Answer

Solution code:
x = input()

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

Submission status: Wrong Answer

Solution code:
S = input()
if S != S.lower() or len(S) != 6 or S[2] != S[3] and S[4] != S[5]:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
inputs=input()

print(True if inputs[2]==inputs[3] and inputs[4]==inputs[5] else False)

Submission status: Wrong Answer

Solution code:
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))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()
if(s[2]==s[3] and s[4]==s[5]):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# get a integer
a = input()
# output
print(len(a) == 6 and a[2] == a[3] and a[4] == a[5])

Submission status: Wrong Answer

Solution code:
def check(x):
    if x[2]==x[3] and x[4]==x[5]:
        print("yes")
    else:
        print("no")
print(check("sippuu"))

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
N = input()

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

Submission status: Wrong Answer

Solution code:
s = input()
txt = 'NO'

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

print(txt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input("Enter 6 letters: ")
if S[2]==S[3] and S[4]==S[5] :
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
l = input("Enter: ")
print("Yes" if (l[2]==l[3] and l[4]==l[5]) else "No")

Submission status: Wrong Answer

Solution code:
def nearcoffee(str):
    return("Yes" if str[2] == str[3] and str[4] == str[5] else "No")
nearcoffee(input())

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
S = input().strip()
if(S[0] == S[1]):
    p = 0
else:
    p = 1
if (S[1] == S[2]):
    q = 0
else:
    q = 1
print(p + q)

Submission status: Wrong Answer

Solution code:
A = input().strip()
if(A[2] == A[3] and A[4] == A[5]):
    print("Yes")
else:
    print ("no")

Submission status: Wrong Answer

Solution code:
def test(s):
    s.split()
    if s[2] == s[3] and s[4] == s[5]:
        print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
S = list(input())
 
if S[2] == S[3] and S[4] == S[5]:
  print("yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

Solution code:
string = str(input())

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

Submission status: Wrong Answer

Solution code:
string = str(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

if len(S) > 6:
    if S[2] is S[3] and S[4] is S[5]:
        print ("Yes")
        exit()
print ("No")

Submission status: Wrong Answer

Solution code:
S = input().rstrip()

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

print("No")

Submission status: Wrong Answer

Solution code:
S = input().rstrip()

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

print("NO")

Submission status: Wrong Answer

Solution code:
S = input()


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

print(judge)

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
words = list(input())

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

Submission status: Wrong Answer

Solution code:
S = list(input())
S = S[2:5:1]
coffee = ["f","f","e","e"]
  
if S == coffee:
    print("Yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
S = list(input())
S = S[2:6:1]
coffee = ["f","f","e","e"]
  
if S == coffee:
    print("Yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
S = list(input())
coffee = ["c","o","f","f","e","e"]
  
if S == coffee:
    print("Yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
string = list(input())

for i in range(len(string)):
  if(string[2] == string[3] and string[4]==string[5]):
    print("Yes")
  else:
    print("No")

Submission status: Wrong Answer

Solution code:
nyuryoku = input()
print(nyuryoku[4:5],nyuryoku[5:6])

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

Submission status: Wrong Answer

Solution code:
S=input();

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

Submission status: Wrong Answer

Solution code:
n =list(input())
if (n[2] == n[3] and n[4] == n[5]):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n =input()
if (n[2] == n[3] and n[4] == n[5]):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n =input()
if ((n[2] == n[3]) and (n[4] == n[5])):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(True)

Submission status: Wrong Answer

Solution code:
input_value = input()

print((input_value[2] == input_value[3]) and (input_value[4] == input_value[5]))

Submission status: Wrong Answer

Solution code:
S=input()
ans='No'

if S[2]==S[3] or S[4]==S[5]:
    ans='Yes'
    
print(ans)

Submission status: Wrong Answer

Solution code:
s = input()

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

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

Submission status: Wrong Answer

Solution code:
S=input()
ans='no'

if S[2]==S[3] and S[4]==S[5]:
    ans='yes'
    
print(ans)

Submission status: Wrong Answer

Solution code:
S=input()
ans='no'

if S[2]==S[3] or S[4]==S[5]:
    ans='yes'
    
print(ans)

Submission status: Wrong Answer

Solution code:
input = input()
if input[2] == input[3] and input[4] == input[5]:
    print('Yes')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
s = str(input())

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


else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=str(input())
if s[2]==s[3] and s[4]==s[5]:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
s = input()

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

elif s[2] == s[3]  and s[4] == s[5]:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n = list(input())
if (n[5]):
    if (n[2]==n[3])and(n[4]==n[5]):
        print("YES")
    else:
        print("NO")

Submission status: Wrong Answer

Solution code:
n = list(input())
if (n[2]==n[3])and(n[4]==n[5]):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
w = input(':')

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
S = list(input("文字を入力してください："))

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

Submission status: Wrong Answer

Solution code:
def resolve():
    word = input()
    if word[2] == word[3] and word[4] == word[5]:
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
import sys
from io import StringIO
import unittest

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

class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)
    def test_入力例_1(self):
        input = """sippuu"""
        output = """Yes"""
        self.assertIO(input, output)
    def test_入力例_2(self):
        input = """iphone"""
        output = """No"""
        self.assertIO(input, output)
    def test_入力例_3(self):
        input = """coffee"""
        output = """Yes"""
        self.assertIO(input, output)

if __name__ == "__main__":
    unittest.main()

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = list(input())
cond1 = S[2] == S[3]
cond2 = S[3] == S[4]
if cond1 & cond2:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
pattern = [[0],[1],[2,3],[4,5]]
S = list(input())
pattern1 = []
passed = []
for i in range(len(S)):
  tmp = []
  if i in passed:
    continue
  for idx in range(len(S)):
    if S[idx] == S[i]:
      tmp.append(idx)
      passed.append(idx)
  pattern1.append(tmp)
if pattern1 == pattern:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
s=input()
if (s[2]==s[3] and s[4]==s[5]):
  print('YES')
else:
     print('NO')

Submission status: Wrong Answer

Solution code:
n = input()
print (list (n))

Submission status: Wrong Answer

Solution code:
a = input()

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
s = input()
x = list(s)
if x[2] == x[3]:
    if x[4] == x[5]:
        print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()

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

Submission status: Wrong Answer

Solution code:
S=input()

ans="No"

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

print(ans)

Submission status: Wrong Answer

Solution code:
a = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = input()

if x[0] != x[1]:
    if x[2] == x[3]:
        if x[2] == x[4]:
            print("No")
        elif x[4] == x[5]:
            print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s_in = input()
if s_in[2]==s_in[3] and s_in[4]==s_in[5]:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
usr = str(input("Enter: "))
if  usr[-3] == usr[-4] and usr[-1] == usr[-2]:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
usr = str(input("Enter: "))
if usr[-1] == usr[-2] and usr[-3] == usr[-4]:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
def Coffee(usr):
    if usr[-1] == usr[-2] and usr[-3] == usr[-4]:
        return 'Yes'
    else:
        return 'No'

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
s = str(input())

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

else:
    print("No")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S='kihnki'
a=S[2]
b=S[3]
c=S[4]
d=S[5]

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
print('YES') if s[2] == s[3] and s[4] == s[5] else print('NO')

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
s = str(input())

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

else:
    print("No")

Submission status: Wrong Answer

Solution code:
s = str(input())



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

else:
        print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
x = input()
if x[2]==x[3] and x[4]==x[5]:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
import numpy as np
S = input()
if S[2] == S[3]:
    if S[4] == S[5]:
        print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
S = str(input())
if (S[2]) == (S[3]):
    if (S[4]) == (S[5]):
        print("Yes")

else:
    print("No")

Submission status: Wrong Answer

Solution code:
a = str(input())
if a[2:3] == a[3:4]:
    if a[4:5] == a[5:6]:
        print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
a = input()
a = str(a)

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

Submission status: Wrong Answer

Solution code:
print("No")

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
a=input()


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = str(input())
 
if S[2] == S[3] and S[4] == S[5]:
  print('Yes')

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
s=input()[2::];print('Yes' if len(set(s))==2 else 'No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()
s=set(s[3:6])
if len(s)<=2:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
s = input()
count = 0
for _ in range(0, len(s), 2):
    if s.count(s[_]) >= 2:
        count += 1
print("Yes" if count >= 2 else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- 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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if len(s) == 6 and s[2] == s[3] and s[4] == s[5]:
    print('Yse')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = input()
count = 0
for _ in range(0, len(s), 2):
    if s.count(s[_]) == 2:
        count += 1
print("Yes" if count >= 2 else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
S= list(S)
if S[2]==S[3] and S[4]==S[5]:
  print('yes')
else: 
  print('no')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

s = input()

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

Submission status: Wrong Answer

Solution code:
S=input()

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

Submission status: Wrong Answer

Solution code:
a,b,c,d,e,f = list(input())
if c==d and e==f:
    print("yes")
else:
  print("no")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input()


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

Submission status: Wrong Answer

Solution code:
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 flag:
        print("YES")
    else:
        print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

if len(S) == 6:
    if S[2:] == 'ffee':
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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

Submission status: Wrong Answer

Solution code:
s=input();
ans ='No'
for n in set(i for i in s[2::]):
  if s.count(n)==2:
    ans='Yes'
print(ans)