Task: Program Execution
Input (English): 3, 5, ['Q', '2951', 'r', '4297', '469', '5845', '5247', 'd', '6377', 'B', '1323', '5987', 'o', 'B', '6785', 'b', '75', 'i', 'v']
Output (English): r, d, o, i