djfz-2020-s450026/TaskC06/C06.py
2020-11-15 16:47:16 +01:00

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')