
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 pigeon owner answered the question of how many pigeons he has: "The number of my pigeons is more than 300 but less than 900. If I release them in pairs, 1 remains; if in groups of three, 2 remain; if in groups of four, 3 remain; if in groups of five, 4 remain; if in groups of six, 5 remain; but if I release them in groups of seven, none remain." How many pigeons does he have?

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