Task: Mathematics
Input (English): 506 # 2554 @ 3277 # 9585 @ 7282 @ 8956 # 9871 @ 9085
Output (English): 7096