def problem_p02723(input_data): s = eval(input_data) if s[2] == s[3] and s[4] == s[5]: return "Yes" else: return "No"