
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 2018-row and 4-column grid is colored such that each cell is either red or blue. The condition is that each row must have an equal number of red and blue cells, and each column must also have an equal number of red and blue cells. Let \(m\) be the total number of such coloring methods. Find the remainder when \(m\) is divided by 2018.

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