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:
9817 @ 5042 # 1724 @ 799 @ 685

Ex Output:
14619


Ex Input:
8698 # 7378 # 9188 @ 5767 # 2935 # 2532 @ 7113

Ex Output:
-455


Ex Input:
4908 # 3162 @ 2367 # 280 @ 470 @ 1160 @ 2136

Ex Output:

7599