Task: Program Execution
Input (English): 5, 9, ['Q', 'c', '9143', 'A', 'Y', '8047', 'I', '9415', 'K', '2671', '745', 'N', 'i', 'Q']
Output (English): Y, 8047, I, 9415, K