In this task you will be given an arithmetic operation and you have to find its answer. The operators '+' and '-' have been replaced with new symbols. Specifically, '+' has been replaced with the symbol '@' and '-' with the symbol '#'. You need to perform the operations in the given equation return the answer

Ex Input:
8769 @ 9595 # 7775 # 3412 # 7 @ 4689 # 4368

Ex Output:
7491


Ex Input:
7539 # 9710 # 800 # 5609

Ex Output:
-8580


Ex Input:
4452 # 8554 # 6445

Ex Output:

-10547