Task: Program Execution
Input (English): 2, 6, ['D', 'Q', 'k', '1423', '1711', 'd', 'X', 'c']
Output (English): Q, k, 1423, 1711, d