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'.

Ex Input:
9306 sottrazione 2453 aggiunta 8727 aggiunta 7622 sottrazione 5254 sottrazione 1791

Ex Output:
16157


Ex Input:
1388 aggiunta 2849 aggiunta 223

Ex Output:
4460


Ex Input:
9487 aggiunta 9814 sottrazione 6936

Ex Output:

12365