
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
In a class of 40 students, each student takes math, history, and computing. Ten students received an A in history, 18 in math, and 9 in computing, including 5 that received an A in both math and history, 3 that received an A in both history and computing, and 4 that received an A in both math and computing. Two students received an A in all three courses. How many students did not receive an A in any of these three courses?

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