djfz-2020-s444399/TaskC39/run

12 lines
261 B
Plaintext
Raw Normal View History

2020-11-15 23:08:11 +01:00
#!/usr/bin/python3
import sys
import re
for input in sys.stdin.readlines():
answer = re.search('^([1-9]{6}|0[1-9]{5}|[1-9]{1}0[1-9]{4}|[1-9]{2}0[1-9]{3}|[1-9]{3}0[1-9]{2}|[1-9]{4}0[1-9]{1}|[1-9]{5}0)$',input);
if answer:
print("yes")
else:
print("no")