
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
Petrov booked an apartment in a newly built house, which has five identical entrances. Initially, the entrances were numbered from left to right, and Petrov's apartment number was 636. Later, the developer changed the numbering to the opposite direction (right to left, as shown in the diagram). Then, Petrov's apartment number became 242. How many apartments are in the building? (The numbering of apartments within each entrance has not changed.)

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