
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
There are two shepherds, A and B. Shepherd A says to B, "Give me one of your sheep, and then I will have twice as many sheep as you." B replies, "It would be better if you give me one of your sheep, then we will have the same number of sheep." Shepherd A has $\boxed{7}$ sheep.

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