Task: Mathematics
Input (English): 8784 # 9796 @ 9145 @ 2730 @ 7195
Output (English): 18058