
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
The code for an automatic lock is a seven-digit number where the first three digits are the same, and the last four digits are also the same. The sum of all the digits of this number is a two-digit number. The first digit of this two-digit sum is the same as the first digit of the code, and the last digit is the same as the last digit of the code. Find this code.

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