
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system

A group of schoolchildren, heading to a school camp, was planned to be seated in buses so that there would be an equal number of passengers in each bus. Initially, 22 people were seated in each bus, but it turned out that three schoolchildren could not be seated. However, when one bus left empty, all the remaining schoolchildren seated equally in the other buses. How many schoolchildren were in the group, given that no more than 18 buses were provided for transporting the schoolchildren, and each bus can hold no more than 36 people? Give the answer as a number without indicating the units.

Present the answer in LaTex format: \boxed{Your answer}
user