
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
Captain Billy the Pirate looted 1010 gold doubloons and set sail on his ship to a deserted island to bury his treasure. Each evening of their voyage, he paid each of his pirates one doubloon. On the eighth day of sailing, the pirates plundered a Spanish caravel, doubling Billy's treasure and halving the number of pirates. On the 48th day of sailing, the pirates reached the deserted island, and Billy buried all his treasure at the marked spot—exactly 1000 doubloons. How many pirates set off with Billy to the deserted island?

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