diff --git a/TaskC44/Makefile b/TaskC44/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskC44/run b/TaskC44/run new file mode 100644 index 0000000..c26249b --- /dev/null +++ b/TaskC44/run @@ -0,0 +1,13 @@ +#!/usr/bin/python3 + +import sys +import re + +for line in sys.stdin: + if re.match(r'([A-ZĆŚŁŹŻ][a-ząćęłńóśźż]*[a]\s([A-ZĆŚŁŹŻ][a-ząćęłńóśźż]+)+$)',line): + if re.match(r'(Kosma|Jarema)',line): + print("") + else: + name = line.split() + print(name[len(name)-1]) + else: print("")