Task: Program Execution
Input (English): 3, 5, ['H', 'z', 'r', 'm', '4863', 'A', 'Q', '4687', '6197']
Output (English): r, m, 4863