Task: Program Execution
Input (English): q, 5017, 6147, 7553, 3653, k, 1913, U, 2839, r, i, D, I
Output (English): 5017, 6147, 7553, 3653, 1913, 2839