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: Consider Input: an architect was building his 2 story house . on the first floor the house had 6 bedrooms and the second floor had 4 bedrooms . how many bedrooms does the house have totaled ?

Output: 10

Input: Consider Input: mrs. snyder made 86 heart cookies . she made 36 red cookies and the rest are pink . how many pink cookies did she make ?

Output: 50

Input: Consider Input: before his friends gave him more stamps simon initially had 34 stamps . if he now has 61 stamps how many stamps did he receive from his friends ?
Output: 27