Task: Mathematics
Input (English): 9261 # 7923 @ 2860 # 8743 # 2971 @ 9367
Output (English): 1851