Task: Mathematics
Input (English): 5835 @ 1801 # 8921 @ 164 # 2952 # 115 @ 8315
Output (English): 4127