Task: Program Execution
Input (English): 3, 5, ['x', '2291', '4717', '3903', 'p', '2857']
Output (English): 4717, 3903, p