10 lines
276 B
Python
10 lines
276 B
Python
|
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("<NONE>")
|