9 lines
322 B
Python
9 lines
322 B
Python
|
import sys
|
||
|
import re
|
||
|
|
||
|
for line in sys.stdin:
|
||
|
numbers = re.match(r'^[a-ząćęłńóśźżA-ZĄĆĘŁŃÓŚŹŻ]([a-zA-ZąćęłńóśźżĄĆĘŁŃÓŚŹŻ]*[a-zA-ZąćęłńóśźżĄĆĘŁŃÓŚŹŻ])?$', line.replace("\n", ""), flags=re.IGNORECASE)
|
||
|
if numbers:
|
||
|
print('yes')
|
||
|
else:
|
||
|
print("no")
|