djfz-2023-s464933/TaskE48/run.py
2024-01-04 12:45:47 +01:00

11 lines
252 B
Python

import sys
import re
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))