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'.

Q: 6757 aggiunta 2461 aggiunta 968

A: 10186
****
Q: 7312 aggiunta 2378 sottrazione 143 aggiunta 5460

A: 15007
****
Q: 8004 aggiunta 4580 aggiunta 8881 sottrazione 1724

A:
19741
****