Instructions: 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'.
Input: 2869 aggiunta 9240 aggiunta 8910 aggiunta 197 aggiunta 7165 aggiunta 5057 aggiunta 2109 aggiunta 676 aggiunta 3494
Output:
39717