Task: Mathematics
Input (English): 5060 # 8665 @ 5629 @ 7931 @ 2582 # 7145 # 1369
Output (English): 4023