djfz-2023-s464986/TaskE06/run.py

19 lines
274 B
Python
Raw Normal View History

2023-12-10 17:28:51 +01:00
import re
import sys
def check(a):
pattern = r'^(?!0)\d{5,6}$'
if re.match(pattern, a):
return True
else:
return False
for line in sys.stdin:
word = line.strip()
if check(word):
print("yes")
else:
print("no")