In this task you will be given an arithmetic operation in Italian and you have to find its answer. The operations 'addition' and 'subtraction' have been replaced with their italian translations i.e you need to perform addition when you see 'aggiunta' and subtraction in case of 'sottrazione'.
--------
Question: 5844 sottrazione 7386 aggiunta 5114

Answer: 3572


Question: 8844 sottrazione 1316 aggiunta 3098

Answer: 10626


Question: 9448 sottrazione 9270 aggiunta 4728 sottrazione 1947 aggiunta 5474 sottrazione 4244

Answer:
4189