Task: Mathematics
Input (English): 8678 # 8407 @ 1343 @ 9113 # 8229 # 4158 @ 2886 @ 1751
Output (English): 2977