Task: Program Execution
Input (English): 2, 6, ['P', 'G', '2199', 'm', 'O', '1847', '3319']
Output (English): 1847, O, m, 2199, G