Task: Mathematics
Input (English): 8642 @ 509 @ 4221 @ 7420 @ 8270 @ 2720
Output (English): 31782