Instructions: You are given a math word problem and you are supposed to apply a single mathematical operators like addition, subtraction, multiplication or division on the numbers embedded in the text to answer the following question and then only report final the numerical answer.
Input: Josh had 142 pencils . He gave 31 pencils to Dorothy . How many pencils does Josh have left ?
Output:
111