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]: 9171 aggiunta 4946 aggiunta 4489 sottrazione 6499 aggiunta 9704
[A]: 21811


[Q]: 8324 aggiunta 8333 aggiunta 4114
[A]: 20771


[Q]: 2689 sottrazione 4652 aggiunta 8929
[A]:
6966