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: 7312 aggiunta 2378 sottrazione 143 aggiunta 5460

Answer: 15007


Question: 3784 aggiunta 7496 sottrazione 5233 aggiunta 5711 aggiunta 4556 aggiunta 4494

Answer: 20808


Question: 5240 sottrazione 2547 aggiunta 7399

Answer:
10092