Task: Program Execution
Input (English): 4, 12, ['8713', '3983', '2783', '7969', '4771', '8781', 'Q', '7447', '893', '7989', '4379', '3943', 'm', '6175']
Output (English): 7969, 4771, 8781, Q, 7447, 893, 7989, 4379, 3943