11 lines
188 B
Python
11 lines
188 B
Python
import sys
|
|
import re
|
|
|
|
regex = re.compile('^[A-Za-z_][A-Za-z0-9_]*$')
|
|
|
|
for line in sys.stdin:
|
|
if regex.match(line.replace('\n', '')):
|
|
print('yes')
|
|
else:
|
|
print('no')
|