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