djfz-2023-s464933/TaskE48/run.py

11 lines
252 B
Python
Raw Normal View History

2023-12-28 12:43:08 +01:00
import sys
import re
2024-01-04 12:45:47 +01:00
def emo_case(s):
p = re.compile(r'^([A-Z\u0104-\u017B]?([a-z\u0105-\u017C][A-Z\u0104-\u017B])+[a-z\u0105-\u017C]?)')
return "yes" if p.match(s) else "no"
for _, l in enumerate(sys.stdin, start=1):
print(emo_case(l))