Task: Mathematics
Input (English): 8650 @ 3789 # 1988 # 605 @ 7900 # 6266 @ 2489 # 1006 @ 8953
Output (English): 21916