9 lines
149 B
Python
9 lines
149 B
Python
import sys
|
|
import re
|
|
|
|
pattern = '[A-Za-z]+'
|
|
|
|
for line in sys.stdin:
|
|
match = re.match(pattern, line).group(0)
|
|
print str(len(match))+" "+match
|