Definition: Given a math word problem, answer the following question. You might need to apply addition or subtraction mathematical operators on the numbers embedded in the text to answer the question and then only report the final numerical answer.
Input: mr. lee gave out first place ribbons after each event . he had 38 ribbons at the start . he gave away 14 ribbons in the morning . he gave out 16 ribbons in the afternoon . how many ribbons did mr. lee have left ?
Output:
8