You will be given a definition of a task first, then some input of the task.
You are given a math word problem and you are supposed to only use subtraction on the numbers embedded in the text to answer the following question and then only report the final numerical answer.

Context: Paul got a box of 589 crayons for his birthday. During the school year he gave 571 crayons to his friends while he lost 161 crayons.

Question: How many more crayons did he give to his friends than those he lost?
Output:
410