You are given a math word problem and you are supposed to apply addition or subtraction mathematical operators on the numbers embedded in the text to answer the following question and then only report the final numerical answer.

Example input: Last year , 90171 people were born in a country , and 16320 people immigrated to it . How many new people began living in the country last year ?
Example output: 106491
Example explanation: Total people living in the country = born - immigrated = 90171 - 16320 = 106491
Q: Vanessa and her mom were picking carrots from their garden . Vanessa picked 17 and her mother picked 14 . If only 24 of the carrots were good , how many bad carrots did they have ?
A:
7