while True: try: start_str = input() n = len(start_str) length_dict = {} left,right = 0,0 result = '' while right < n: result += start_str[right] if left<n and not result.isdigit(): left = right result = '' if len(result) > 0: length_dict[len(result)]=length_dict.get(len(result),'')+result ...