Task: Program Execution
Input (English): 5, 12, ['a', 'C', '625', 'P', '9447', 'i', '2617', 'Q', 'K', '4161', '2829', '7787', '4171']
Output (English): 9447, i, 2617, Q, K, 4161, 2829, 7787