9 lines
172 B
Python
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') |