Task: Mathematics
Input (English): 2495 @ 7683 @ 706 @ 5746 @ 7998 @ 5941
Output (English): 30569