Task: Mathematics
Input (English): 3291 # 424 # 5166 @ 4367 @ 8578 # 6629 @ 9868 @ 4065
Output (English): 17950