Task: Mathematics
Input (English): 5877 # 1045 @ 4929 @ 6307 @ 7719 @ 9320 @ 8296 @ 3598 # 4524
Output (English): 40477