Task: Mathematics
Input (English): 4040 # 5046 @ 3117 @ 7597 # 9831 @ 1867
Output (English): 1744