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:
5191 # 7400 @ 7319 # 5932 @ 662 @ 1546

Ex Output:
1386


Ex Input:
7483 @ 4061 @ 195 # 1982 @ 5673 # 6623 @ 9661 @ 7613

Ex Output:
26081


Ex Input:
8619 @ 5750 # 1175

Ex Output:

13194