Task: Mathematics
Input (English): 5958 # 8415 @ 4329 @ 371 # 9907 @ 5390 @ 5157 @ 2644
Output (English): 5527