Task: Mathematics
Input (English): 8007 # 1921 @ 7346 # 8016 # 2016 @ 1462 @ 1132 @ 8321 @ 9627
Output (English): 23942