
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 pair of numbers is called magical if their sum is divisible by 7. What is the maximum number of magical pairs of adjacent numbers that can be obtained by writing all the numbers from 1 to 30 in a row in some order?

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