import sys for line in sys.stdin: stripped_line = line.strip() line_length = len(stripped_line) print(f"{line_length} {stripped_line}")