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:
7539 # 9710 # 800 # 5609

Ex Output:
-8580


Ex Input:
9380 # 5155 # 480 # 6791 # 9548 @ 2674 # 821 @ 657

Ex Output:
-10084


Ex Input:
9035 @ 4523 # 1766 # 2420 # 8735 # 7008

Ex Output:

-6371