Task: Program Execution
Input (English): 6, 10, ['r', 'a', '1041', 'q', 'h', 's', '585', 'Q', '7511', 'c']
Output (English): s, 585, Q, 7511, c