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: 8974 sottrazione 7773 sottrazione 3563 sottrazione 4611 aggiunta 9907 aggiunta 5313

Output: 8247


Input: Consider Input: 769 aggiunta 7758 aggiunta 7584

Output: 16111


Input: Consider Input: 731 aggiunta 7513 sottrazione 5550 aggiunta 4078


Output: 6772