Task: Program Execution
Input (English): 4723, Q, g, X, f, 7143, 6591, 4581, 1917, 4393
Output (English): 29348