/**
 * Given a list of criminals and a list of police officers' badge numbers,
 * find the suspects who have a badge number greater than the average badge
 * number of all police officers.
 *
 * @param criminals List of criminal names.
 * @param badgeNumbers List of police officers' badge numbers.
 * @return List of suspects who have a badge number greater than the average
 *         badge number of all police officers.
 */
fun findSuspects(criminals: List<String>, badgeNumbers: List<Int>): List<String> {

    // Calculate the average badge number
    val averageBadgeNumber = badgeNumbers.sum() / badgeNumbers.size

    // Use filtering to find suspects with a badge number greater than average
    val suspects = criminals.filterIndexed { index, _ -> badgeNumbers[index] > averageBadgeNumber }

    return suspects
}

// Example usage
/**
 * Given a list of criminals and a list of police officers' badge numbers,
 * find the suspects who have a badge number greater than the average badge
 * number of all police officers.
 *
 * @param criminals List of criminal names.
 * @param badgeNumbers List of police officers' badge numbers.
 * @return List of suspects who have a badge number greater than the average
 *         badge number of all police officers.
 */
fun findSuspects(criminals: List<String>, badgeNumbers: List<Int>): List<String> {
/**
 * Given a list of criminals and a list of police officers' badge numbers,
 * find the suspects who have a badge number greater than the average badge
 * number of all police officers.
 *
 * @param criminals List of criminal names.
 * @param badgeNumbers List of police officers' badge numbers.
 * @return List of suspects who have a badge number greater than the average
 *         badge number of all police officers.
 */
fun findSuspects(criminals: List<String>, badgeNumbers: List<Int>): List<String> {

    // Calculate the average badge number
    val averageBadgeNumber = badgeNumbers.sum() / badgeNumbers.size

    // Use filtering to find suspects with a badge number greater than average
    val suspects = criminals.filterIndexed { index, _ -> badgeNumbers[index] > averageBadgeNumber }

    return suspects
}

// Example usage