/**
 * This function takes the number of chefs and the number of dishes as inputs and returns the count of dishes for which all the chefs can agree upon.
 */
fun chefDishCount(chefs: Int, dishes: Int): Int {

    var dishesCount = 0

    for (dish in 0 until dishes) {
        var count = 0

        // Chef 1 wants the dish (true) or not (false)
        val chef1 = dish % 2 == 0

        // Chef 2 wants the dish (true) or not (false)
        val chef2 = dish % 3 == 0

        // Chef 3 wants the dish (true) or not (false)
        val chef3 = dish % 5 == 0

        // Chef 4 wants the dish (true) or not (false)
        val chef4 = dish % 7 == 0

        if (chef1 && chef2 && chef3 && chef4) {
            dishesCount++
        }
    }

    return dishesCount
}
/**
 * This function takes the number of chefs and the number of dishes as inputs and returns the count of dishes for which all the chefs can agree upon.
 */
fun chefDishCount(chefs: Int, dishes: Int): Int {
/**
 * This function takes the number of chefs and the number of dishes as inputs and returns the count of dishes for which all the chefs can agree upon.
 */
fun chefDishCount(chefs: Int, dishes: Int): Int {

    var dishesCount = 0

    for (dish in 0 until dishes) {
        var count = 0

        // Chef 1 wants the dish (true) or not (false)
        val chef1 = dish % 2 == 0

        // Chef 2 wants the dish (true) or not (false)
        val chef2 = dish % 3 == 0

        // Chef 3 wants the dish (true) or not (false)
        val chef3 = dish % 5 == 0

        // Chef 4 wants the dish (true) or not (false)
        val chef4 = dish % 7 == 0

        if (chef1 && chef2 && chef3 && chef4) {
            dishesCount++
        }
    }

    return dishesCount
}