Task: Mathematics
Input (English): 4785 @ 7854 @ 8835 @ 9387 # 5988
Output (English): 24873