Task: Program Execution
Input (English): 3, 5, ['a', 'm', 'q', '1851', '9515', '7481', 'q', '1303', 'P', '429', '2189', 'm', '3181', 'J', '5645', '5503', 'B', '2701', 'v', '2657', 'k']
Output (English): 9515, 1851, q