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:
580 @ 9980 # 4059 # 4694 @ 8096 # 3324

Ex Output:
6579


Ex Input:
7924 @ 8575 # 3974 @ 6720

Ex Output:
19245


Ex Input:
6424 @ 3881 # 2074 @ 2558 # 3969 # 974 # 7719

Ex Output:

-1873