djfz-2023-s464933/TaskE20/run.py
2024-01-03 19:19:38 +01:00

9 lines
218 B
Python

import sys
import re
for line in sys.stdin:
numbers = re.match(r'^(0?[0-9]{2}) (\d{1}-\d{3}-\d{3})$', line.replace("\n", ""), flags=re.IGNORECASE)
if numbers:
print('yes')
else:
print("no")