Task: Mathematics
Input (English): 5010 # 2117 @ 6121 # 6244 @ 1089 @ 5871
Output (English): 9730