Task: Program Execution
Input (English): d, Q, 5491, l, 6621, 7733, T, a
Output (English): 19845