12 lines
261 B
Plaintext
12 lines
261 B
Plaintext
|
#!/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")
|