1. A group of schoolchildren heading to a school camp was to be seated in buses so that each bus had the same number of passengers. Initially, 22 people were to be seated in each bus, but it turned out that three schoolchildren could not be seated this way. When one bus left empty, all the schoolchildren were able to sit evenly in the remaining buses. How many schoolchildren were in the group, given that no more than 18 buses were allocated for transporting the schoolchildren, and no more than 36 people can fit in each bus.
Answer in the form of a number without indicating the unit.

(5 points)