
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
Misha proposed to Yulia to move a piece from cell $A$ to cell $B$. In one step, the piece can be moved to an adjacent cell either by side or by corner. To make it more interesting, Misha placed 30 candies in the prize fund but said he would take away 2 candies for each horizontal or vertical move and 3 candies for each diagonal move. The remaining candies Yulia will receive as a reward. What is the maximum number of candies Yulia can win?

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