Task: Program Execution
Input (English): 5, 11, ['3807', 'q', 'e', 'Z', 'r', 'M', 'N', '4529', 'z', '5729', 'P', '2591', 'I', '4547', '5593', 'B']
Output (English): r, M, N, 4529, z, 5729, P