Task: Program Execution
Input (English): 2, 5, ['J', 't', 'g', '9689', '7265', '8541', 'q', '4887', '8047', 'P']
Output (English): t, g, 9689, 7265