Task: Mathematics
Input (English): 2399 # 1940 @ 3993 @ 8862 @ 6982
Output (English): 20296