
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 sports competition lasting \( n \) days (\( n > 1 \)) distributed a total of \( m \) medals. On the first day, 1 medal and \( \frac{1}{7} \) of the remaining medals were distributed. On the second day, 2 medals and \( \frac{1}{7} \) of the still remaining medals were distributed, and so on. Finally, on the \( n \)-th, the last day, exactly \( n \) medals were distributed.

How long did the sports competition last and how many medals were distributed in total?

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