Task: Program Execution
Input (English): 2, 5, ['P', 'A', '4385', 'Z', '5607', 'N', 'M', 'r', 'I', 'i', 'Q', 'N']
Output (English): A, 4385, Z, 5607