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:
507 @ 3439 # 8086 # 5497 @ 2145 @ 2124 @ 9603 @ 2119 @ 8351

Ex Output:
14705


Ex Input:
64 # 5994 @ 8659 # 885

Ex Output:
1844


Ex Input:
541 # 3060 @ 3289 # 8574 @ 527 @ 5302

Ex Output:

-1975