Task: Program Execution
Input (English): 3, 4, ['D', 'P', '9017', 'J', 'l', 'B', '7997']
Output (English): J9017