Task: Mathematics
Input (English): 9052 # 9668 # 714 @ 8067 # 5201 @ 1377 # 986 @ 3775 # 3844
Output (English): 1858