Task: Program Execution
Input (English): q, 317, J, B, 7643, b, i, d, 9557, 7291, 1137, 3517, A, 4203, 9135, k, M, y, c, z
Output (English): 317, 7643, 9557, 7291, 1137, 3517, 4203, 9135