Task: Mathematics
Input (English): 8360 # 8090 @ 5957 # 5457 @ 5413 # 3343 @ 2018 @ 2458 # 6475
Output (English): 841