Task: Mathematics
Input (English): 8494 # 6717 @ 4374 @ 3102 # 7030 @ 2271
Output (English): 4494