14 lines
218 B
Python
14 lines
218 B
Python
import re
|
|
import sys
|
|
|
|
|
|
def line_digits_correct(line):
|
|
return re.search('^([1-9](\d{4}|\d{5}))$', line)
|
|
|
|
|
|
for line in sys.stdin:
|
|
if line_digits_correct(line):
|
|
print('yes')
|
|
else:
|
|
print('no')
|