Task: Program Execution
Input (English): 3, 7, ['2907', 'Q', '4027', '4003', 'P', 'X', 'U', '313', 'p']
Output (English): 4027, 4003, P, X, U