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:
826 # 6501 # 223 @ 9761 # 8863

Ex Output:
-5000


Ex Input:
8227 # 7725 @ 669 @ 489 @ 6499 @ 2486

Ex Output:
10645


Ex Input:
4805 @ 115 @ 5520 # 624 @ 4782 # 3381

Ex Output:

11217