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:
8769 @ 9595 # 7775 # 3412 # 7 @ 4689 # 4368

Ex Output:
7491


Ex Input:
5235 @ 3917 @ 4902 @ 3831 # 6517

Ex Output:
11368


Ex Input:
9820 # 200 # 4339

Ex Output:

5281