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: 5305 aggiunta 8554 aggiunta 659 aggiunta 8151 aggiunta 1642

A: 24311
****
Q: 5912 aggiunta 8754 aggiunta 4209

A: 18875
****
Q: 8977 aggiunta 371 sottrazione 3985

A:
5363
****