
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 on buses so that each bus had the same number of passengers. Initially, 22 people were seated in each bus, but it turned out that three schoolchildren were left without a seat. When one bus left empty, all the remaining schoolchildren were evenly distributed among the remaining buses. How many schoolchildren were in the group, given that no more than 18 buses were allocated for transportation and each bus can hold up to 36 people?

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