Definition: 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
Input: 8677 @ 560 # 4864 @ 1843 @ 9750 @ 9570 @ 4287
Output:
29823