4.4. A teacher at a summer math camp took with him for the whole summer several shirts, several pairs of pants, several pairs of shoes, and two jackets. At each lesson, he wore pants, a shirt, and shoes, and he wore a jacket on some lessons. On any two lessons, at least one of the items of his clothing or shoes was different. It is known that if he had taken one more shirt, he could have conducted 36 more lessons; if he had taken one more pair of pants, he could have conducted 72 more lessons; if he had taken one more pair of shoes, he could have conducted 54 more lessons. What is the maximum number of lessons he could conduct under these conditions?
Answer: 216.

Note. In versions $4.2,4.3,4.4$, answers $252,360,420$ respectively are also counted as correct.