Task: Program Execution
Input (English): 2, 7, ['K', '2947', 'D', '1487', 'C', '895', 'f', 'e', 'h', 'L', 'H', '8943', '5747', '4889', 'X', '1091', '4761', '5985', '7799']
Output (English): 2947, h, 1091