AtCoder Beginner Contest 160 - Coffee

A string of length 6 consisting of lowercase English letters is said to be coffee-like if and only if its 3-rd and 4-th characters are equal and its 5-th and 6-th characters are also equal.

Given a string S, determine whether it is coffee-like.

-----Constraints-----
 - S is a string of length 6 consisting of lowercase English letters.

-----Input-----
Input is given from Standard Input in the following format:
S

-----Output-----
If S is coffee-like, print Yes; otherwise, print No.

-----Sample Input-----
sippuu

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

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

Difficulty: EASY

Starter code:

Solutions:
s = str(input())
if s[2] == s[3]:
	if s[4] == s[5]:
		print('Yes')
		return
print('No')


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


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


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


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


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


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


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


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


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


s = input()
print('NYoe s'[s[2] == s[3] and s[4] == s[5]::2])


S = input()
yes = True
if S[2] != S[3]:
	yes = False
if S[4] != S[5]:
	yes = False
if yes:
	print('Yes')
else:
	print('No')


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


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


s = input()
print('YNeos'[not (s[2] == s[3] and s[4] == s[5])::2])


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


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


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


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


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


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


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


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


s = input()
a = ['No', 'Yes']
print(a[s[2] == s[3] and s[4] == s[5]])


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


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


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


(a, b, c, d, e, f) = input()
if c == d and e == f:
	print('Yes')
else:
	print('No')


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


s = f'@{input()}'
print((s[3] == s[4] and s[5] == s[6]) and 'Yes' or 'No')


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


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


(a, b, c, d) = input()[2:]
print('YNeos'[(a, c) != (b, d)::2])


x = input()
print(['No', 'Yes'][x[2] == x[3] and x[4] == x[5]])


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


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


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


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


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


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


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


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


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


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


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


S = input()
print('YNeos'[not (S[2] == S[3] and S[4] == S[5])::2])


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


s = '!' + input()
print('Yes' if s[3] == s[4] and s[5] == s[6] else 'No')


S = [0] + list(input())
print('Yes' if S[3] == S[4] and S[5] == S[6] else 'No')


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


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


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


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


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


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

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


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


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


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


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


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


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


S = [i for i in input()]
print('Yes' if S[2] == S[3] and S[4] == S[5] else 'No')


(a, b, c, d, e, f) = input()
print('YNeos'[c != d or e != f::2])


s = input()
ans = 'No'
if s[2] == s[3] and s[-2] == s[-1]:
	ans = 'Yes'
print(ans)


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


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


S = input()
print(['No', 'Yes'][S[2] == S[3] and S[4] == S[5]])


s = list(input())
print(['No', 'Yes'][s[2] == s[3] and s[4] == s[5]])