djfz-2023-s473575/TaskE22/run.py
2023-12-10 19:09:40 +01:00

9 lines
172 B
Python

import re
import sys
for line in sys.stdin:
stripped_line = line.strip()
if re.search(r'^(?:[0-9]|10):(?:[0-9]|10)$', stripped_line):
print('yes')
else:
print('no')