Task: Program Execution
Input (English): 2, 2, ['P', '4803', '7823', '8325', '7039', 'i', '9845', '7705', '8003', '1411', 'Q', '8253', 'R']
Output (English): 4803, 8325, i, 7705, 1411, 8253