Instructions: 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.
Input: Josh had 142 pencils . He gave 31 pencils to Dorothy . How many pencils does Josh have left ?
Output:
111