
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 had the number 636. Then the builder changed the numbering to the opposite direction (from right to left). After that, Petrov's apartment received the number 242. How many apartments are in the house? (The numbering order of the apartments within the entrance did not change.)

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