
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 shepherd is herding a flock of sheep. After one ram runs away, he counts the remaining sheep and finds the ratio of rams to ewes is 7:5. After a while, the runaway ram returns to the flock, but then one ewe runs away. The shepherd counts the sheep again and finds the ratio of rams to ewes is 5:3. How many sheep were originally in the flock?

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