djfz-2020-s444344/TaskC04/run
Zofia Bączyk 619de96228 atempt 1
2020-11-22 16:16:36 +01:00

10 lines
220 B
Python

#!/usr/bin/python3
import sys
import re
for line in sys.stdin:
if re.match(r'(555\s[0-9][0-9][0-9]\s|[0-9][0-9][0-9]$)|(555(-)[0-9][0-9][0-9](-)|[0-9][0-9][0-9]$)',line):
print("yes")
else: print("no")