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:
7165 @ 3630 @ 9021 # 4140 @ 319

Ex Output:
15995


Ex Input:
4100 @ 4500 @ 5166 @ 7442 @ 3258

Ex Output:
24466


Ex Input:
1110 # 9323 @ 2002 # 6622 @ 2536 @ 938 @ 654 # 9477

Ex Output:

-18182