13 lines
211 B
Python
13 lines
211 B
Python
import re
|
|
import sys
|
|
|
|
pattern = re.compile(r"(^N{1}I{1}E{6,}\!{3,}$)|(^N{1}O{6,}\!{3,}$)")
|
|
|
|
|
|
for line in sys.stdin:
|
|
x = re.findall(pattern, line)
|
|
if x:
|
|
print('yes')
|
|
else:
|
|
print("no")
|