9 lines
239 B
Python
9 lines
239 B
Python
import sys
|
|
import re
|
|
|
|
for line in sys.stdin:
|
|
numbers = re.fullmatch(r"(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3})", line.replace("\n", ""), flags=re.IGNORECASE)
|
|
if numbers:
|
|
print("yes")
|
|
else:
|
|
print("no") |