/**
 * This function calculates the number of cuts needed to divide a piece of wood into multiple sections of a given length.
 *
 * @param lengths A list of integers representing the lengths of the wood pieces.
 * @param targetLength The desired length of each section.
 * @return The minimum number of cuts required to achieve the desired lengths.
 */
fun calculateCuts(lengths: List<Int>, targetLength: Int): Int {

    var totalCuts = 0
    for (length in lengths) {
        if (length > targetLength) {
            totalCuts += length / targetLength
        }
    }
    return totalCuts
}
/**
 * This function calculates the number of cuts needed to divide a piece of wood into multiple sections of a given length.
 *
 * @param lengths A list of integers representing the lengths of the wood pieces.
 * @param targetLength The desired length of each section.
 * @return The minimum number of cuts required to achieve the desired lengths.
 */
fun calculateCuts(lengths: List<Int>, targetLength: Int): Int {
/**
 * This function calculates the number of cuts needed to divide a piece of wood into multiple sections of a given length.
 *
 * @param lengths A list of integers representing the lengths of the wood pieces.
 * @param targetLength The desired length of each section.
 * @return The minimum number of cuts required to achieve the desired lengths.
 */
fun calculateCuts(lengths: List<Int>, targetLength: Int): Int {

    var totalCuts = 0
    for (length in lengths) {
        if (length > targetLength) {
            totalCuts += length / targetLength
        }
    }
    return totalCuts
}