djfz-2023-s464933/TaskE03/run.py
2023-12-28 12:43:08 +01:00

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