Task: Program Execution
Input (English): 4, 10, ['n', 'B', 'U', '1471', '5679', 'L', 'P', '605', '1877', 'I', '8507', '3381']
Output (English): 1471, 5679, L, P, 605, 1877, I