diff --git a/TaskC04/Makefile b/TaskC04/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskC04/run b/TaskC04/run new file mode 100644 index 0000000..31d0e75 --- /dev/null +++ b/TaskC04/run @@ -0,0 +1,9 @@ +#!/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")