Task: Program Execution
Input (English): 1, 5, ['E', '2351', '8239', '7455', '1771', 'A', 'S', 'H', 'Q', '5855', 'N']
Output (English): 1771, 7455, 8239, 2351, E