Task: Mathematics
Input (English): 1943 @ 9616 # 657 # 8238 @ 5965 @ 6305 # 1044 # 9908
Output (English): 3982