
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
Divers extracted a certain number of pearls, not exceeding 1000. The distribution of the pearls happens as follows: each diver in turn approaches the heap of pearls and takes either exactly half or exactly one-third of the remaining pearls. After all divers have taken their share, the remainder of the pearls is offered to the sea god. What is the maximum number of divers that could have participated in the pearl extraction?

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