Task: Mathematics
Input (English): 6516 @ 2967 # 2954 # 227 @ 7442 # 3861 @ 8498
Output (English): 18381