
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
Diana drew a rectangular grid of 2 by 1009 squares. Some of the squares were then painted black. In each white square, she wrote the number of black squares that shared an edge with it (a whole edge, not just a vertex). What is the maximum value that she could obtain as the result of the sum of all the numbers in this grid?

A 1262  
B 2016  
C 2018  
D 3025  
E 3027

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