diff --git a/TaskC45_TODO/solution.py b/TaskC45_TODO/solution.py new file mode 100644 index 0000000..51b13c6 --- /dev/null +++ b/TaskC45_TODO/solution.py @@ -0,0 +1,9 @@ +import re +import sys + +for line in sys.stdin: + match = re.match(r'^([A-ZĆŁŚŹŻ][a-ząęóćłśńźż]*[b-ząęóćłśńźż]|Kosma|Jarema)\s([A-ZĆŁŚŹŻ][a-ząęóćłśńźż]+)$', line) + if match: + print(match.group(2)) + else: + print("")