Task: Mathematics
Input (English): 8712 # 5912 @ 2490 # 5062 @ 4960 @ 2866
Output (English): 8054