djfz-2020-s450026/TaskC06/C06.py

14 lines
218 B
Python
Raw Normal View History

2020-11-15 16:47:16 +01:00
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')