Task: Program Execution
Input (English): 4, 6, ['2129', '9901', 'X', '6255', 'a', 'b', 'B', 'P', '8907', 'J']
Output (English): ba6255