
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
There is a closed bag containing apples. Three friends tried to lift the bag and guess how many apples were inside. The first friend said there were 19 apples, the second guessed 22, and the third guessed 23. When they opened the bag, it turned out that one of them was off by 1, another by 2, and the third by 3. How many apples were in the bag? Find all possible answers.

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