Task: Mathematics
Input (English): 9720 @ 6485 @ 1745 @ 728
Output (English): 18678