
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 school's sports equipment room originally had 100 basketballs. The record of basketballs returned and borrowed over a week is as follows: 38 returned, 42 borrowed, 27 returned, 33 borrowed, and 40 borrowed. How many basketballs are currently in the sports equipment room?

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