
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
Given the set \( S = \{(i, j) \mid i, j = 1, 2, \ldots, 100\} \) composed of \( 100 \times 100 \) grid points on the Cartesian plane, each point in \( S \) is colored with one of four given colors. Find the maximum possible number of rectangles whose vertices are four points in \( S \) that all have different colors and whose sides are parallel to the coordinate axes.

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