Task: Mathematics
Input (English): 9715 # 6597 # 9346 # 2539 @ 246 @ 9542 # 3152 @ 5781
Output (English): 3650