djfz-2023-s464933/TaskE42/run.py
2024-01-03 19:19:38 +01:00

9 lines
201 B
Python

import sys
import re
for line in sys.stdin:
str = re.match(r'^N(IE|O).*[EO]{5,}.*!!!.*', line.replace("\n", ""), flags=re.IGNORECASE)
if str:
print('yes')
else:
print("no")