Task: Program Execution
Input (English): 2, 6, ['M', 'D', '8363', '5923', '647', '847', 'O', 'j', 'P', 'x', 'o', 's', '4109', 'J']
Output (English): D, j, J