Task: Program Execution
Input (English): 2, 10, ['6539', 'C', '861', 'P', 'N', '4609', 'K', '6195', '4853', '1559', '4773', 'T', '4841', '649', '5987', '4801', 'D', '3171', '837', '3891', '3089']
Output (English): C, T