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:
2996 @ 6178 @ 7214 # 172 # 3711

Ex Output:
12505


Ex Input:
2548 @ 2442 # 6943 # 1890 @ 3686 @ 9765 # 1273

Ex Output:
8335


Ex Input:
7108 @ 7370 @ 5714 # 509 # 5917

Ex Output:

13766