djfz-2019-s426197/TaskX03/run.py

9 lines
149 B
Python
Raw Normal View History

2019-10-22 14:59:02 +02:00
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