Task: Mathematics
Input (English): 9961 @ 1681 @ 7757 # 4226 @ 3563 # 8397 # 9396 @ 6986
Output (English): 7929