Task: Mathematics
Input (English): 640 # 2534 @ 8069 # 6819 @ 317 # 9009 @ 7022 @ 7116
Output (English): 4802