Task: Mathematics
Input (English): 7457 # 9732 @ 1691 @ 2450 @ 16 @ 1610 @ 1729
Output (English): 5221