
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 student wrote a program that recolors a pixel into one of 128 different colors. He numbered these colors with natural numbers from 1 to 128, with the primary colors receiving the following numbers: white - number 1, red - 5, orange - 13, yellow - 19, green - 23, light blue - 53, blue - 55, purple - 83, and black - 128. If the original color of the pixel has a number $n \leq 17$, the student's program recolors it to the color with the number $3n - 2$. If the original color of the pixel has a number $n \geq 18$, the pixel is recolored to the number $|129 - 2n|$. Initially, the pixel had a red color. The student applied his program to it 2019 times in succession. What color did the pixel end up being?

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