Task: Mathematics
Input (English): 6960 # 1626 @ 8322 # 7244 @ 7276 # 419 @ 5040
Output (English): 18309