Task: Program Execution
Input (English): 7, 10, ['q', 'I', '5263', 'B', 'A', '7947', '1089', '5293', '99', '1199', 'p', '8787', '1313']
Output (English): 1199, 99, 5293, 1089