9 lines
218 B
Python
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") |