Task: Program Execution
Input (English): q, 3023, 5287, 5009, e, A, U, d, 3109
Output (English): 2, 3, 4, 9