Task: Mathematics
Input (English): 9704 # 1692 # 2240 # 1896 @ 8830 @ 3309
Output (English): 16015