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:
6340 # 5642 @ 8051 # 3877 # 2824 # 3105 # 9957 @ 9874 # 6399

Ex Output:
-7539


Ex Input:
7944 # 4957 # 8255 @ 684

Ex Output:
-4584


Ex Input:
5994 # 687 # 165 # 5262 # 8151 @ 4548 @ 3210 # 7266

Ex Output:

-7779