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: Consider Input: 590 aggiunta 6110 aggiunta 5900 sottrazione 6488 sottrazione 6324 aggiunta 3065

Output: 2853


Input: Consider Input: 5208 aggiunta 6800 aggiunta 6471

Output: 18479


Input: Consider Input: 2076 aggiunta 8519 aggiunta 1775 sottrazione 178


Output: 12192