18 lines
394 B
Python
18 lines
394 B
Python
import sys
|
|
import re
|
|
|
|
regex = re.compile('(#[A-Za-z][A-Za-z0-9]*)')
|
|
|
|
for line in sys.stdin:
|
|
hashtags = list(regex.findall(line.replace('\n', '')))
|
|
if hashtags:
|
|
answer = ''
|
|
for i, tag in enumerate(hashtags):
|
|
if i == 0:
|
|
answer += tag
|
|
else:
|
|
answer += ';' + tag
|
|
print(answer)
|
|
else:
|
|
print('<NONE>')
|