Task: Program Execution
Input (English): 5, 9, ['1103', '1421', 'B', '9081', 'h', 'p', '1589', 'Q', '8549', 'r']
Output (English): 8549, Q, 1589, p, h