djfz-2023-s464933/TaskE20/run.py

9 lines
218 B
Python
Raw Normal View History

2023-12-28 12:43:08 +01:00
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:
2024-01-03 19:19:38 +01:00
print('yes')
2023-12-28 12:43:08 +01:00
else:
2024-01-03 19:19:38 +01:00
print("no")