Task: Program Execution
Input (English): 2, 4, ['573', '1643', '567', '5335', '1495', 'P', 'f', '5407', 'P', '2559', '623', 'Q']
Output (English): 1643, 567, 5335