def complete_bracket_sequence(input_text):
    # Step 1: Parse the input text to extract the opening brackets.
    opening_brackets = extract_opening_brackets(input_text)
    print(f"Opening brackets: {opening_brackets}")

    # Step 2: Generate the closing sequence.
    closing_brackets = generate_closing_sequence(opening_brackets)
    print(f"Closing brackets: {closing_brackets}")

    # Step 3: Ensure proper parentheses.
    if check_balance(opening_brackets, closing_brackets):
        print("Proper parentheses.")
    else:
        print("Improper parentheses.")

    # Step 4: Return the final answer.
    return " ".join(closing_brackets)