
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
Petya types five digits on his computer screen, none of which are zeros. Every second, the computer removes the first digit and appends the last digit of the sum of the remaining four digits. (For example, if Petya enters 12345, one second later the screen will show 23454, then 34546, and so on. However, Petya may enter other combinations of five digits instead of 12345.) At some point, Petya stops the process. What is the minimum possible sum of the five digits that could be on the screen at that moment?

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