Definition: 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.

Positive Example 1 -
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 ?
Output: 106491

Positive Example 2 -
Input: There are 27 pencils in the drawer . Nancy placed 45 pencils in the drawer . How many pencils are now there in total ?
Output: 72

Negative Example 1 -
Input: Alyssa picked 42 pears and Nancy picked 17 pears from the pear tree . How many pears were picked in all ?
Output: 42

Negative Example 2 -
Input: The town of Milburg has 5256 grown - ups and 2987 children . How many people live in Milburg ?
Output: 2987

Now complete the following example -
Input: Last Saturday , Spencer walked all over town running errands . First , he walked 0.3 mile from his house to the library and 0.1 mile from the library to the post office . Then he walked 0.4 mile from the post office back home . How many miles did Spencer walk in all ?
Output: 


Output: 0.8