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:
9682 @ 9507 # 7565 # 4252

Ex Output:
7372


Ex Input:
6472 # 6421 @ 7649 @ 4005

Ex Output:
11705


Ex Input:
8695 @ 5631 @ 349 # 5666 @ 3480

Ex Output:

12489