
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
Three shepherds are together. Shepherd A says to Shepherd B, "If you give me one of your sheep, and then I give you one-fifth of my total number of sheep, we will have the same number of sheep." Shepherd A also says to Shepherd C, "If you give me two of your sheep, and then I give you two-sevenths of my total number of sheep, we will have the same number of sheep." What is the minimum total number of sheep the three shepherds have?

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