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")