def destructure_input(input):
    """
    Destructures input list and returns lists of numerical assignments,
    credit assignments and queries

    Keyword arguments:
    input -- input text with new line separators
    """
    num_assignment = [item.strip() for item in input if "Credits" not in item and "?" not in item]
    credit_assignment = [item.strip() for item in input if "Credits" in item and "?" not in item]
    queries = [item.strip() for item in input if "?" in item]
    return num_assignment, credit_assignment, queries